Is const_cast safe?

后端 未结 6 2163
名媛妹妹
名媛妹妹 2020-11-22 12:17

I can\'t find much information on const_cast. The only info I could find (on Stack Overflow) is:

The const_cast<>() i

6条回答
  •  不知归路
    2020-11-22 12:57

    You're destroying any chance at thread-safety, if you start modifying things that the compiler thought were const.

提交回复
热议问题