// Copyright Sebastian Jeckel 2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #pragma once #include "react/detail/Defs.h" /***************************************/ REACT_IMPL_BEGIN /**************************************/ /////////////////////////////////////////////////////////////////////////////////////////////////// /// BasicSingleton /////////////////////////////////////////////////////////////////////////////////////////////////// template class BasicSingleton { public: static T& Instance() { static T instance; return instance; } protected: BasicSingleton() {} BasicSingleton(const BasicSingleton& other) {} BasicSingleton(BasicSingleton&& other) {} }; /****************************************/ REACT_IMPL_END /***************************************/