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
0
nullptr
= 0 has a fixed meaning there. It's not really an integer zero there. Therefore, you can't simply replace it like that.
= 0