I have some singleton classes (please do not talk about singleton use).
Class Input Systems: Promotion :: Serialization :: Singleton & lt; InputSystem & gt; {Private: Promotion: Share_Pit & lt; Sf :: window & gt; MInputWindow; Public: Input Systems () {mInputWindow = boost :: shared_ptr & lt; Sf :: window & gt; (New SF :: windows (someARgs)); SomeMethod (); } Few methods () {mInputWindow-> ...) / sf :: calling some methods of window squares / everything is fine here} const sf :: input and handle () const {return mInputWindow.get ()) - & gt; GetInput (); }}; Zero main () {InputSystem :: get_mutable_instance (). the handle (); // All members of the input system have invalid addresses in memory (0x000)} What can be there?
Comments
Post a Comment