Console class should be static/namespace.
console.print should be Console::print.
Other classes might need to be instantiated via operator new.
Everywhere.
Not just console, but every class that has a global instance.
The reason is that you cannot control the order of instantiation.
Console class should be static/namespace.
console.print should be Console::print.
Other classes might need to be instantiated via operator new.
Everywhere.
Not just console, but every class that has a global instance.
The reason is that you cannot control the order of instantiation.