If the constructor (init function),
an object will be created but ok_ is not guaranteed to be false.
This leads that i.e. the window::ok() method may give a non correct output.
Btw:
Is there a reason, why you are using a init method instead of constructor delegation for the window class?
If not, I may rewrite the constructors in such a way, that the initializer expression can be used (which removes a potential unnecessary init of some objects).
If the constructor (init function), an object will be created but
ok_
is not guaranteed to be false. This leads that i.e. thewindow::ok()
method may give a non correct output.Btw: Is there a reason, why you are using a init method instead of constructor delegation for the window class? If not, I may rewrite the constructors in such a way, that the initializer expression can be used (which removes a potential unnecessary init of some objects).