adjustments for clang visibility

This commit is contained in:
Robert Ramey
2015-10-25 21:02:44 -07:00
parent 494fa31e1c
commit a76a511c95
5 changed files with 24 additions and 21 deletions

View File

@@ -152,6 +152,7 @@ basic_binary_iprimitive<Archive, Elem, Tr>::basic_binary_iprimitive(
archive_locale(sb.getloc(), & codecvt_null_facet)
{
if(! no_codecvt){
m_sb.pubsync();
m_sb.pubimbue(archive_locale);
}
}

View File

@@ -105,6 +105,7 @@ basic_binary_oprimitive<Archive, Elem, Tr>::basic_binary_oprimitive(
archive_locale(sb.getloc(), & codecvt_null_facet)
{
if(! no_codecvt){
m_sb.pubsync();
m_sb.pubimbue(archive_locale);
}
}

View File

@@ -81,24 +81,15 @@ namespace serialization {
// attempt to retieve a mutable instances while locked will
// generate a assertion if compiled for debug.
class singleton_module :
class BOOST_SYMBOL_VISIBLE singleton_module :
public boost::noncopyable
{
private:
BOOST_SERIALIZATION_DECL static bool & get_lock();
static bool & get_lock();
public:
// static const void * get_module_handle(){
// return static_cast<const void *>(get_module_handle);
// }
static void lock(){
get_lock() = true;
}
static void unlock(){
get_lock() = false;
}
static bool is_locked() {
return get_lock();
}
BOOST_SERIALIZATION_DECL static void lock();
BOOST_SERIALIZATION_DECL static void unlock();
BOOST_SERIALIZATION_DECL static bool is_locked();
};
#include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas