Hi all,
I need to implement a singleton, so I've been reading about it online and I'm still not quite sure about all the types of constructors I need to declare:
Is this OK?Code:class my_singleton { private: my_singleton(); my_singleton(my_singleton & X); my_singleton(const my_singleton & X); ... static bool instance; ... public: static my_singleton* get_instance(); ... ~my_singleton(); }
Thanks.