From 3765166f4b392c478d66239e530c8e60b2c712c2 Mon Sep 17 00:00:00 2001 From: Robert Ramey Date: Sat, 25 Jun 2016 08:21:02 -0700 Subject: [PATCH] altered visibility attributes --- include/boost/serialization/singleton.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/boost/serialization/singleton.hpp b/include/boost/serialization/singleton.hpp index fcb79c36..8c701f61 100644 --- a/include/boost/serialization/singleton.hpp +++ b/include/boost/serialization/singleton.hpp @@ -115,10 +115,10 @@ template class singleton : public singleton_module { private: - BOOST_DLLEXPORT static T & instance; + BOOST_SERIALIZATION_DECL static T & instance; // include this to provoke instantiation at pre-execution time static void use(T const *) {} - BOOST_DLLEXPORT static T & get_instance() { + BOOST_SERIALIZATION_DECL static T & get_instance() { static detail::singleton_wrapper< T > t; // refer to instance, causing it to be instantiated (and // initialized at startup on working compilers) @@ -127,20 +127,20 @@ private: return static_cast(t); } public: - BOOST_DLLEXPORT static T & get_mutable_instance(){ + BOOST_SERIALIZATION_DECL static T & get_mutable_instance(){ BOOST_ASSERT(! is_locked()); return get_instance(); } - BOOST_DLLEXPORT static const T & get_const_instance(){ + BOOST_SERIALIZATION_DECL static const T & get_const_instance(){ return get_instance(); } - BOOST_DLLEXPORT static bool is_destroyed(){ + BOOST_SERIALIZATION_DECL static bool is_destroyed(){ return detail::singleton_wrapper< T >::m_is_destroyed; } }; template -BOOST_DLLEXPORT T & singleton< T >::instance = singleton< T >::get_instance(); +BOOST_SERIALIZATION_DECL T & singleton< T >::instance = singleton< T >::get_instance(); } // namespace serialization } // namespace boost