#ifndef SINGLETON2 #define SINGLETON2 template class SingletonT { public: static Object & Instance() { static Object s("The Board"); return s; } SingletonT(const SingletonT & ) = delete; SingletonT & operator = (SingletonT & ) = delete; private: SingletonT() = default; ~SingletonT() = default; }; #endif