Is there any downside of declaring function parameter as const pointer to const

后端 未结 0 490
遥遥无期
遥遥无期 2021-02-04 05:57

A lot of books and experts say when talking about declaring functions/methods that you should put const everywhere you can unless you know that you need to modify that parameter

相关标签:
回答
  • 消灭零回复
提交回复
热议问题