Pure virtual functions in C++11

前端 未结 8 2187
太阳男子
太阳男子 2020-12-29 18:46

In C++98, the null pointer was represented by the literal 0 (or in fact any constant expression whose value was zero). In C++11, we prefer nullptr

8条回答
  •  粉色の甜心
    2020-12-29 19:37

    = 0 has a fixed meaning there. It's not really an integer zero there. Therefore, you can't simply replace it like that.

提交回复
热议问题