What's wrong with const?

前端 未结 12 2064
無奈伤痛
無奈伤痛 2021-01-31 12:06

What are the known shortfalls of const in C++ and C++0x?

12条回答
  •  情话喂你
    2021-01-31 12:30

    The main problem is that you have to write it. It should be the default, and all mutable variables or parameters should be specified explicitly.

提交回复
热议问题