mirror of
https://github.com/boostorg/serialization.git
synced 2026-02-23 03:52:24 +00:00
adjustments for clang visibility
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user