No it isn’t, initialise all your values to “something” in the constructor and don’t let there even be a chance of undefined behaviour. Avoiding undefined behaviour is C/C++ 101.
No it isn’t, initialise all your values to “something” in the constructor and don’t let there even be a chance of undefined behaviour. Avoiding undefined behaviour is C/C++ 101.