Question regarding singletons
Posted: Wed Jan 28, 2009 12:38 pm
I was wondering, if you had a singleton that was really the main control center for a program, and you really only had to call start(), which would take care of all the stuff that has to be done, could you do something like this, presuming that Main::get_instance()'s return type was Main*?
Code: Select all
Main::get_instance()->start()