Const correctness for value parameters

前端 未结 6 883
野性不改
野性不改 2020-11-28 12:09

I know there are few question about const correctness where it is stated that the declaration of a function and its definition do not need to agree for value parameters. Thi

6条回答
  •  没有蜡笔的小新
    2020-11-28 12:38

    Unfortunately, some compilers (I'm looking at you, Sun CC!) incorrectly differentiate between arguments declared const and ones not declared so, and you can get errors about undefined functions.

提交回复
热议问题