Use of 'const' for function parameters

前端 未结 30 3251
借酒劲吻你
借酒劲吻你 2020-11-22 03:06

How far do you go with const? Do you just make functions const when necessary or do you go the whole hog and use it everywhere? For example, imag

30条回答
  •  离开以前
    2020-11-22 03:41

    There is a good discussion on this topic in the old "Guru of the Week" articles on comp.lang.c++.moderated here.

    The corresponding GOTW article is available on Herb Sutter's web site here.

提交回复
热议问题