class GObj { public: GObj() { } protected: private: }; std::map myUniverse; GObj test(); myUniverse["string"] = test;