class Singleton { public: static Singleton& get() {static Singleton s; return s;} private: Singleton() {} Singleton(const Singleton &) {} // rest of class remains the same };