Passing int as bool argument in C++
In this declaration toto t = new toto(0); the object t of the class type toto is initialized by the pointer returned by the expression new toto(0). As the returned pointer is not equal to nullptr then it is implicitly converted to the boolean value true. So in fact you have toto t = true; … Read more