mirror of
https://github.com/boostorg/serialization.git
synced 2026-02-02 09:02:18 +00:00
enhancement to support gcc visibility.
These changes are meant to support gcc visibility on mingw platforms - which is basically gcc with windows attributes.
This commit is contained in:
@@ -39,7 +39,7 @@ namespace archive {
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// exceptions thrown by archives
|
||||
//
|
||||
class BOOST_SYMBOL_VISIBLE archive_exception :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE archive_exception :
|
||||
public virtual std::exception
|
||||
{
|
||||
private:
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace detail {
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// class basic_binary_iarchive - read serialized objects from a input binary stream
|
||||
template<class Archive>
|
||||
class BOOST_SYMBOL_VISIBLE basic_binary_iarchive :
|
||||
class BOOST_ARCHIVE_OR_WARCHIVE_SYMBOL_VISIBLE basic_binary_iarchive :
|
||||
public detail::common_iarchive<Archive>
|
||||
{
|
||||
#ifdef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
||||
|
||||
@@ -67,7 +67,7 @@ class codecvt_null;
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// class binary_iarchive - read serialized objects from a input binary stream
|
||||
template<class Archive, class Elem, class Tr>
|
||||
class BOOST_SYMBOL_VISIBLE basic_binary_iprimitive {
|
||||
class BOOST_ARCHIVE_OR_WARCHIVE_SYMBOL_VISIBLE basic_binary_iprimitive {
|
||||
#ifndef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
||||
friend class load_access;
|
||||
protected:
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace detail {
|
||||
// does have the virtue of buiding the smalles archive in the minimum amount
|
||||
// of time. So under some circumstances it may be he right choice.
|
||||
template<class Archive>
|
||||
class BOOST_SYMBOL_VISIBLE basic_binary_oarchive :
|
||||
class BOOST_ARCHIVE_OR_WARCHIVE_SYMBOL_VISIBLE basic_binary_oarchive :
|
||||
public detail::common_oarchive<Archive>
|
||||
{
|
||||
#ifdef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
||||
|
||||
@@ -61,7 +61,7 @@ class codecvt_null;
|
||||
// class basic_binary_oprimitive - binary output of prmitives
|
||||
|
||||
template<class Archive, class Elem, class Tr>
|
||||
class BOOST_SYMBOL_VISIBLE basic_binary_oprimitive {
|
||||
class BOOST_ARCHIVE_OR_WARCHIVE_SYMBOL_VISIBLE basic_binary_oprimitive {
|
||||
#ifndef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
||||
friend class save_access;
|
||||
protected:
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace detail {
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// class basic_text_iarchive - read serialized objects from a input text stream
|
||||
template<class Archive>
|
||||
class BOOST_SYMBOL_VISIBLE basic_text_iarchive :
|
||||
class BOOST_ARCHIVE_OR_WARCHIVE_SYMBOL_VISIBLE basic_text_iarchive :
|
||||
public detail::common_iarchive<Archive>
|
||||
{
|
||||
#ifdef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace archive {
|
||||
#endif
|
||||
|
||||
template<class IStream>
|
||||
class BOOST_SYMBOL_VISIBLE basic_text_iprimitive {
|
||||
class BOOST_ARCHIVE_OR_WARCHIVE_SYMBOL_VISIBLE basic_text_iprimitive {
|
||||
protected:
|
||||
IStream &is;
|
||||
io::ios_flags_saver flags_saver;
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace detail {
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// class basic_text_oarchive
|
||||
template<class Archive>
|
||||
class BOOST_SYMBOL_VISIBLE basic_text_oarchive :
|
||||
class BOOST_ARCHIVE_OR_WARCHIVE_SYMBOL_VISIBLE basic_text_oarchive :
|
||||
public detail::common_oarchive<Archive>
|
||||
{
|
||||
#ifdef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace archive {
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// class basic_text_oprimitive - output of prmitives to stream
|
||||
template<class OStream>
|
||||
class BOOST_SYMBOL_VISIBLE basic_text_oprimitive
|
||||
class BOOST_ARCHIVE_OR_WARCHIVE_SYMBOL_VISIBLE basic_text_oprimitive
|
||||
{
|
||||
protected:
|
||||
OStream &os;
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace detail {
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// class xml_iarchive - read serialized objects from a input text stream
|
||||
template<class Archive>
|
||||
class BOOST_SYMBOL_VISIBLE basic_xml_iarchive :
|
||||
class BOOST_ARCHIVE_OR_WARCHIVE_SYMBOL_VISIBLE basic_xml_iarchive :
|
||||
public detail::common_iarchive<Archive>
|
||||
{
|
||||
#ifdef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace detail {
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// class basic_xml_oarchive - write serialized objects to a xml output stream
|
||||
template<class Archive>
|
||||
class BOOST_SYMBOL_VISIBLE basic_xml_oarchive :
|
||||
class BOOST_ARCHIVE_OR_WARCHIVE_SYMBOL_VISIBLE basic_xml_oarchive :
|
||||
public detail::common_oarchive<Archive>
|
||||
{
|
||||
#ifdef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace archive {
|
||||
// do not derive from this class. If you want to extend this functionality
|
||||
// via inhertance, derived from binary_iarchive_impl instead. This will
|
||||
// preserve correct static polymorphism.
|
||||
class BOOST_SYMBOL_VISIBLE binary_iarchive :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE binary_iarchive :
|
||||
public binary_iarchive_impl<
|
||||
boost::archive::binary_iarchive,
|
||||
std::istream::char_type,
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace archive {
|
||||
// do not derive from this class. If you want to extend this functionality
|
||||
// via inhertance, derived from binary_oarchive_impl instead. This will
|
||||
// preserve correct static polymorphism.
|
||||
class BOOST_SYMBOL_VISIBLE binary_oarchive :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE binary_oarchive :
|
||||
public binary_oarchive_impl<
|
||||
binary_oarchive, std::ostream::char_type, std::ostream::traits_type
|
||||
>
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace detail {
|
||||
class basic_serializer;
|
||||
|
||||
template<class Archive>
|
||||
class BOOST_SYMBOL_VISIBLE archive_serializer_map {
|
||||
class BOOST_ARCHIVE_OR_WARCHIVE_SYMBOL_VISIBLE archive_serializer_map {
|
||||
public:
|
||||
static BOOST_ARCHIVE_OR_WARCHIVE_DECL bool insert(const basic_serializer * bs);
|
||||
static BOOST_ARCHIVE_OR_WARCHIVE_DECL void erase(const basic_serializer * bs);
|
||||
|
||||
@@ -42,7 +42,7 @@ class basic_pointer_iserializer;
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// class basic_iarchive - read serialized objects from a input stream
|
||||
class BOOST_SYMBOL_VISIBLE basic_iarchive :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE basic_iarchive :
|
||||
private boost::noncopyable,
|
||||
public boost::archive::detail::helper_collection
|
||||
{
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace detail {
|
||||
class basic_iarchive;
|
||||
class basic_pointer_iserializer;
|
||||
|
||||
class BOOST_SYMBOL_VISIBLE basic_iserializer :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE basic_iserializer :
|
||||
public basic_serializer
|
||||
{
|
||||
private:
|
||||
|
||||
@@ -40,7 +40,7 @@ class basic_pointer_oserializer;
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// class basic_oarchive - write serialized objects to an output stream
|
||||
class BOOST_SYMBOL_VISIBLE basic_oarchive :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE basic_oarchive :
|
||||
private boost::noncopyable,
|
||||
public boost::archive::detail::helper_collection
|
||||
{
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace detail {
|
||||
class basic_oarchive;
|
||||
class basic_pointer_oserializer;
|
||||
|
||||
class BOOST_SYMBOL_VISIBLE basic_oserializer :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE basic_oserializer :
|
||||
public basic_serializer
|
||||
{
|
||||
private:
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace detail {
|
||||
class basic_iarchive;
|
||||
class basic_iserializer;
|
||||
|
||||
class BOOST_SYMBOL_VISIBLE basic_pointer_iserializer
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE basic_pointer_iserializer
|
||||
: public basic_serializer {
|
||||
protected:
|
||||
explicit BOOST_ARCHIVE_DECL basic_pointer_iserializer(
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace detail {
|
||||
class basic_oarchive;
|
||||
class basic_oserializer;
|
||||
|
||||
class BOOST_SYMBOL_VISIBLE basic_pointer_oserializer :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE basic_pointer_oserializer :
|
||||
public basic_serializer
|
||||
{
|
||||
protected:
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace detail {
|
||||
|
||||
class basic_serializer;
|
||||
|
||||
class BOOST_SYMBOL_VISIBLE
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE
|
||||
basic_serializer_map : public
|
||||
boost::noncopyable
|
||||
{
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#if defined(BOOST_ARCHIVE_SOURCE)
|
||||
#define BOOST_ARCHIVE_DECL BOOST_SYMBOL_EXPORT
|
||||
#define BOOST_ARCHIVE_OR_WARCHIVE_DECL BOOST_SYMBOL_EXPORT
|
||||
#define BOOST_SYMBOL_VISIBLE BOOST_SYMBOL_EXPORT
|
||||
#define BOOST_ARCHIVE_SYMBOL_VISIBLE BOOST_SYMBOL_EXPORT
|
||||
#else
|
||||
#define BOOST_ARCHIVE_DECL BOOST_SYMBOL_IMPORT
|
||||
#endif
|
||||
@@ -54,7 +54,17 @@
|
||||
#define BOOST_ARCHIVE_OR_WARCHIVE_DECL
|
||||
#endif
|
||||
|
||||
#undef BOOST_SYMBOL_VISIBLE
|
||||
#define BOOST_SYMBOL_VISIBLE BOOST_ARCHIVE_DECL
|
||||
// All Win32 development environments, including 64-bit Windows and MinGW, define
|
||||
// _WIN32 or one of its variant spellings. Note that Cygwin is a POSIX environment,
|
||||
// so does not define _WIN32 or its variants.
|
||||
#if (defined(_WIN32) || defined(__WIN32__) || defined(WIN32)) && !defined(__CYGWIN__)
|
||||
#define BOOST_ARCHIVE_SYMBOL_VISIBLE BOOST_ARCHIVE_DECL
|
||||
#define BOOST_WARCHIVE_SYMBOL_VISIBLE BOOST_WARCHIVE_DECL
|
||||
#define BOOST_ARCHIVE_OR_WARCHIVE_SYMBOL_VISIBLE BOOST_ARCHIVE_OR_WARCHIVE_DECL
|
||||
#else
|
||||
#define BOOST_ARCHIVE_SYMBOL_VISIBLE BOOST_SYMBOL_VISIBLE
|
||||
#define BOOST_WARCHIVE_SYMBOL_VISIBLE BOOST_SYMBOL_VISIBLE
|
||||
#define BOOST_ARCHIVE_OR_WARCHIVE_SYMBOL_VISIBLE BOOST_SYMBOL_VISIBLE
|
||||
#endif
|
||||
|
||||
#endif // BOOST_ARCHIVE_DETAIL_DECL_HPP
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace boost {
|
||||
namespace archive {
|
||||
namespace detail {
|
||||
|
||||
class BOOST_ARCHIVE_OR_WARCHIVE_DECL basic_pointer_iserializer;
|
||||
class basic_pointer_iserializer;
|
||||
|
||||
template<class Archive>
|
||||
class interface_iarchive
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace detail {
|
||||
|
||||
class polymorphic_iarchive;
|
||||
|
||||
class BOOST_SYMBOL_VISIBLE polymorphic_iarchive_impl :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE polymorphic_iarchive_impl :
|
||||
public detail::interface_iarchive<polymorphic_iarchive>
|
||||
{
|
||||
#ifdef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
||||
@@ -155,7 +155,7 @@ public:
|
||||
namespace boost {
|
||||
namespace archive {
|
||||
|
||||
class BOOST_SYMBOL_VISIBLE polymorphic_iarchive :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE polymorphic_iarchive :
|
||||
public polymorphic_iarchive_impl
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace detail {
|
||||
|
||||
class polymorphic_oarchive;
|
||||
|
||||
class BOOST_SYMBOL_VISIBLE polymorphic_oarchive_impl :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE polymorphic_oarchive_impl :
|
||||
public detail::interface_oarchive<polymorphic_oarchive>
|
||||
{
|
||||
#ifdef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
||||
@@ -139,7 +139,7 @@ public:
|
||||
};
|
||||
|
||||
// note: preserve naming symmetry
|
||||
class BOOST_SYMBOL_VISIBLE polymorphic_oarchive :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE polymorphic_oarchive :
|
||||
public polymorphic_oarchive_impl
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace detail {
|
||||
} // namespace detail
|
||||
|
||||
template<class Archive>
|
||||
class BOOST_SYMBOL_VISIBLE text_iarchive_impl :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE text_iarchive_impl :
|
||||
public basic_text_iprimitive<std::istream>,
|
||||
public basic_text_iarchive<Archive>
|
||||
{
|
||||
@@ -116,7 +116,7 @@ protected:
|
||||
namespace boost {
|
||||
namespace archive {
|
||||
|
||||
class BOOST_SYMBOL_VISIBLE text_iarchive :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE text_iarchive :
|
||||
public text_iarchive_impl<text_iarchive>{
|
||||
public:
|
||||
text_iarchive(std::istream & is_, unsigned int flags = 0) :
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace detail {
|
||||
} // namespace detail
|
||||
|
||||
template<class Archive>
|
||||
class BOOST_SYMBOL_VISIBLE text_oarchive_impl :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE text_oarchive_impl :
|
||||
/* protected ? */ public basic_text_oprimitive<std::ostream>,
|
||||
public basic_text_oarchive<Archive>
|
||||
{
|
||||
@@ -103,7 +103,7 @@ public:
|
||||
// do not derive from this class. If you want to extend this functionality
|
||||
// via inhertance, derived from text_oarchive_impl instead. This will
|
||||
// preserve correct static polymorphism.
|
||||
class BOOST_SYMBOL_VISIBLE text_oarchive :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE text_oarchive :
|
||||
public text_oarchive_impl<text_oarchive>
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace detail {
|
||||
} // namespace detail
|
||||
|
||||
template<class Archive>
|
||||
class BOOST_SYMBOL_VISIBLE text_wiarchive_impl :
|
||||
class BOOST_WARCHIVE_SYMBOL_VISIBLE text_wiarchive_impl :
|
||||
public basic_text_iprimitive<std::wistream>,
|
||||
public basic_text_iarchive<Archive>
|
||||
{
|
||||
@@ -114,7 +114,7 @@ protected:
|
||||
namespace boost {
|
||||
namespace archive {
|
||||
|
||||
class BOOST_SYMBOL_VISIBLE text_wiarchive :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE text_wiarchive :
|
||||
public text_wiarchive_impl<text_wiarchive>{
|
||||
public:
|
||||
text_wiarchive(std::wistream & is, unsigned int flags = 0) :
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace detail {
|
||||
} // namespace detail
|
||||
|
||||
template<class Archive>
|
||||
class BOOST_SYMBOL_VISIBLE text_woarchive_impl :
|
||||
class BOOST_WARCHIVE_SYMBOL_VISIBLE text_woarchive_impl :
|
||||
public basic_text_oprimitive<std::wostream>,
|
||||
public basic_text_oarchive<Archive>
|
||||
{
|
||||
@@ -129,7 +129,7 @@ public:
|
||||
// do not derive from this class. If you want to extend this functionality
|
||||
// via inhertance, derived from text_oarchive_impl instead. This will
|
||||
// preserve correct static polymorphism.
|
||||
class BOOST_SYMBOL_VISIBLE text_woarchive :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE text_woarchive :
|
||||
public text_woarchive_impl<text_woarchive>
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace archive {
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// exceptions thrown by xml archives
|
||||
//
|
||||
class BOOST_SYMBOL_VISIBLE xml_archive_exception :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE xml_archive_exception :
|
||||
public virtual boost::archive::archive_exception
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -44,7 +44,7 @@ class basic_xml_grammar;
|
||||
typedef basic_xml_grammar<char> xml_grammar;
|
||||
|
||||
template<class Archive>
|
||||
class BOOST_SYMBOL_VISIBLE xml_iarchive_impl :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE xml_iarchive_impl :
|
||||
public basic_text_iprimitive<std::istream>,
|
||||
public basic_xml_iarchive<Archive>
|
||||
{
|
||||
@@ -128,7 +128,7 @@ protected:
|
||||
namespace boost {
|
||||
namespace archive {
|
||||
|
||||
class BOOST_SYMBOL_VISIBLE xml_iarchive :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE xml_iarchive :
|
||||
public xml_iarchive_impl<xml_iarchive>{
|
||||
public:
|
||||
xml_iarchive(std::istream & is, unsigned int flags = 0) :
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace detail {
|
||||
} // namespace detail
|
||||
|
||||
template<class Archive>
|
||||
class BOOST_SYMBOL_VISIBLE xml_oarchive_impl :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE xml_oarchive_impl :
|
||||
public basic_text_oprimitive<std::ostream>,
|
||||
public basic_xml_oarchive<Archive>
|
||||
{
|
||||
@@ -118,7 +118,7 @@ public:
|
||||
// do not derive from this class. If you want to extend this functionality
|
||||
// via inhertance, derived from xml_oarchive_impl instead. This will
|
||||
// preserve correct static polymorphism.
|
||||
class BOOST_SYMBOL_VISIBLE xml_oarchive :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE xml_oarchive :
|
||||
public xml_oarchive_impl<xml_oarchive>
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -58,7 +58,7 @@ class basic_xml_grammar;
|
||||
typedef basic_xml_grammar<wchar_t> xml_wgrammar;
|
||||
|
||||
template<class Archive>
|
||||
class BOOST_SYMBOL_VISIBLE xml_wiarchive_impl :
|
||||
class BOOST_WARCHIVE_SYMBOL_VISIBLE xml_wiarchive_impl :
|
||||
public basic_text_iprimitive<std::wistream>,
|
||||
public basic_xml_iarchive<Archive>
|
||||
{
|
||||
@@ -142,7 +142,7 @@ protected:
|
||||
namespace boost {
|
||||
namespace archive {
|
||||
|
||||
class BOOST_SYMBOL_VISIBLE xml_wiarchive :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE xml_wiarchive :
|
||||
public xml_wiarchive_impl<xml_wiarchive>{
|
||||
public:
|
||||
xml_wiarchive(std::wistream & is, unsigned int flags = 0) :
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace detail {
|
||||
} // namespace detail
|
||||
|
||||
template<class Archive>
|
||||
class BOOST_SYMBOL_VISIBLE xml_woarchive_impl :
|
||||
class BOOST_ARCHIVE_SYMBOL_VISIBLE xml_woarchive_impl :
|
||||
public basic_text_oprimitive<std::wostream>,
|
||||
public basic_xml_oarchive<Archive>
|
||||
{
|
||||
@@ -135,7 +135,7 @@ public:
|
||||
// do not derive from this class. If you want to extend this functionality
|
||||
// via inhertance, derived from xml_woarchive_impl instead. This will
|
||||
// preserve correct static polymorphism.
|
||||
class BOOST_SYMBOL_VISIBLE xml_woarchive :
|
||||
class BOOST_WARCHIVE_SYMBOL_VISIBLE xml_woarchive :
|
||||
public xml_woarchive_impl<xml_woarchive>
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -50,10 +50,14 @@
|
||||
#define BOOST_SERIALIZATION_DECL
|
||||
#endif
|
||||
|
||||
#undef BOOST_SYMBOL_VISIBLE
|
||||
#define BOOST_SYMBOL_VISIBLE BOOST_SERIALIZATION_DECL
|
||||
|
||||
// enable automatic library variant selection ------------------------------//
|
||||
// All Win32 development environments, including 64-bit Windows and MinGW, define
|
||||
// _WIN32 or one of its variant spellings. Note that Cygwin is a POSIX environment,
|
||||
// so does not define _WIN32 or its variants.
|
||||
#if (defined(_WIN32) || defined(__WIN32__) || defined(WIN32)) && !defined(__CYGWIN__)
|
||||
#define BOOST_SERIALIZATION_SYMBOL_VISIBLE BOOST_SERIALIZATION_DECL
|
||||
#else
|
||||
#define BOOST_SERIALIZATION_SYMBOL_VISIBLE BOOST_SYMBOL_VISIBLE
|
||||
#endif
|
||||
|
||||
#if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_SERIALIZATION_NO_LIB) \
|
||||
&& !defined(BOOST_ARCHIVE_SOURCE) && !defined(BOOST_WARCHIVE_SOURCE) \
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace void_cast_detail{
|
||||
class void_caster;
|
||||
}
|
||||
|
||||
class BOOST_SYMBOL_VISIBLE extended_type_info :
|
||||
class BOOST_SERIALIZATION_SYMBOL_VISIBLE extended_type_info :
|
||||
private boost::noncopyable
|
||||
{
|
||||
private:
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace no_rtti_system {
|
||||
|
||||
// common base class to share type_info_key. This is used to
|
||||
// identify the method used to keep track of the extended type
|
||||
class BOOST_SYMBOL_VISIBLE extended_type_info_no_rtti_0 :
|
||||
class BOOST_SERIALIZATION_SYMBOL_VISIBLE extended_type_info_no_rtti_0 :
|
||||
public extended_type_info
|
||||
{
|
||||
protected:
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace boost {
|
||||
namespace serialization {
|
||||
namespace typeid_system {
|
||||
|
||||
class BOOST_SYMBOL_VISIBLE extended_type_info_typeid_0 :
|
||||
class BOOST_SERIALIZATION_SYMBOL_VISIBLE extended_type_info_typeid_0 :
|
||||
public extended_type_info
|
||||
{
|
||||
virtual const char * get_debug_info() const {
|
||||
@@ -78,7 +78,7 @@ public:
|
||||
} // typeid_system
|
||||
|
||||
template<class T>
|
||||
class extended_type_info_typeid :
|
||||
class BOOST_SERIALIZATION_SYMBOL_VISIBLE extended_type_info_typeid :
|
||||
public typeid_system::extended_type_info_typeid_0,
|
||||
public singleton<extended_type_info_typeid< T > >
|
||||
{
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/noncopyable.hpp>
|
||||
#include <boost/serialization/force_include.hpp>
|
||||
#include <boost/serialization/config.hpp>
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
# pragma warning(push)
|
||||
@@ -77,7 +78,7 @@ namespace serialization {
|
||||
// attempt to retieve a mutable instances while locked will
|
||||
// generate a assertion if compiled for debug.
|
||||
|
||||
class BOOST_SYMBOL_VISIBLE singleton_module :
|
||||
class BOOST_SERIALIZATION_SYMBOL_VISIBLE singleton_module :
|
||||
public boost::noncopyable
|
||||
{
|
||||
private:
|
||||
|
||||
@@ -54,7 +54,7 @@ void_upcast(
|
||||
void const * const t
|
||||
);
|
||||
|
||||
inline void *
|
||||
BOOST_SERIALIZATION_DECL inline void *
|
||||
void_upcast(
|
||||
extended_type_info const & derived,
|
||||
extended_type_info const & base,
|
||||
@@ -74,7 +74,7 @@ void_downcast(
|
||||
void const * const t
|
||||
);
|
||||
|
||||
inline void *
|
||||
BOOST_SERIALIZATION_DECL inline void *
|
||||
void_downcast(
|
||||
extended_type_info const & derived,
|
||||
extended_type_info const & base,
|
||||
@@ -89,7 +89,7 @@ void_downcast(
|
||||
|
||||
namespace void_cast_detail {
|
||||
|
||||
class BOOST_SYMBOL_VISIBLE void_caster :
|
||||
class BOOST_SERIALIZATION_SYMBOL_VISIBLE void_caster :
|
||||
private boost::noncopyable
|
||||
{
|
||||
friend
|
||||
@@ -151,7 +151,7 @@ public:
|
||||
#endif
|
||||
|
||||
template <class Derived, class Base>
|
||||
class BOOST_SYMBOL_VISIBLE void_caster_primitive :
|
||||
class BOOST_SERIALIZATION_SYMBOL_VISIBLE void_caster_primitive :
|
||||
public void_caster
|
||||
{
|
||||
virtual void const * downcast(void const * const t) const {
|
||||
@@ -199,7 +199,7 @@ void_caster_primitive<Derived, Base>::~void_caster_primitive(){
|
||||
}
|
||||
|
||||
template <class Derived, class Base>
|
||||
class BOOST_SYMBOL_VISIBLE void_caster_virtual_base :
|
||||
class BOOST_SERIALIZATION_SYMBOL_VISIBLE void_caster_virtual_base :
|
||||
public void_caster
|
||||
{
|
||||
virtual bool has_virtual_base() const {
|
||||
@@ -244,7 +244,7 @@ void_caster_virtual_base<Derived,Base>::~void_caster_virtual_base(){
|
||||
}
|
||||
|
||||
template <class Derived, class Base>
|
||||
struct BOOST_SYMBOL_VISIBLE void_caster_base :
|
||||
struct BOOST_SERIALIZATION_SYMBOL_VISIBLE void_caster_base :
|
||||
public void_caster
|
||||
{
|
||||
typedef
|
||||
@@ -281,7 +281,7 @@ inline const void_cast_detail::void_caster & void_cast_register(
|
||||
}
|
||||
|
||||
template<class Derived, class Base>
|
||||
class BOOST_SYMBOL_VISIBLE void_caster :
|
||||
class BOOST_SERIALIZATION_SYMBOL_VISIBLE void_caster :
|
||||
public void_cast_detail::void_caster_base<Derived, Base>::type
|
||||
{
|
||||
};
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace archive {
|
||||
// constants used in archive signature
|
||||
//This should never ever change. note that is not an std::string
|
||||
// string.
|
||||
BOOST_SYMBOL_VISIBLE const char *
|
||||
BOOST_ARCHIVE_SYMBOL_VISIBLE const char *
|
||||
BOOST_ARCHIVE_SIGNATURE(){
|
||||
return "serialization::archive";
|
||||
}
|
||||
@@ -75,7 +75,7 @@ BOOST_ARCHIVE_SIGNATURE(){
|
||||
// 12- improved serialization of collections
|
||||
// 13- simplified visibility, removed Borland, removed pfto
|
||||
|
||||
BOOST_SYMBOL_VISIBLE library_version_type
|
||||
BOOST_ARCHIVE_SYMBOL_VISIBLE library_version_type
|
||||
BOOST_ARCHIVE_VERSION(){
|
||||
return library_version_type(13);
|
||||
}
|
||||
|
||||
@@ -561,7 +561,6 @@ basic_iarchive::load_pointer(
|
||||
const basic_pointer_iserializer * (*finder)(
|
||||
const boost::serialization::extended_type_info & type_
|
||||
)
|
||||
|
||||
){
|
||||
return pimpl->load_pointer(*this, t, bpis_ptr, finder);
|
||||
}
|
||||
|
||||
@@ -14,35 +14,35 @@
|
||||
namespace boost {
|
||||
namespace archive {
|
||||
|
||||
BOOST_SYMBOL_VISIBLE const char *
|
||||
BOOST_ARCHIVE_SYMBOL_VISIBLE const char *
|
||||
BOOST_ARCHIVE_XML_OBJECT_ID(){
|
||||
return "object_id";
|
||||
}
|
||||
BOOST_SYMBOL_VISIBLE const char *
|
||||
BOOST_ARCHIVE_SYMBOL_VISIBLE const char *
|
||||
BOOST_ARCHIVE_XML_OBJECT_REFERENCE(){
|
||||
return "object_id_reference";
|
||||
}
|
||||
BOOST_SYMBOL_VISIBLE const char *
|
||||
BOOST_ARCHIVE_SYMBOL_VISIBLE const char *
|
||||
BOOST_ARCHIVE_XML_CLASS_ID(){
|
||||
return "class_id";
|
||||
}
|
||||
BOOST_SYMBOL_VISIBLE const char *
|
||||
BOOST_ARCHIVE_SYMBOL_VISIBLE const char *
|
||||
BOOST_ARCHIVE_XML_CLASS_ID_REFERENCE(){
|
||||
return "class_id_reference";
|
||||
}
|
||||
BOOST_SYMBOL_VISIBLE const char *
|
||||
BOOST_ARCHIVE_SYMBOL_VISIBLE const char *
|
||||
BOOST_ARCHIVE_XML_CLASS_NAME(){
|
||||
return "class_name";
|
||||
}
|
||||
BOOST_SYMBOL_VISIBLE const char *
|
||||
BOOST_ARCHIVE_SYMBOL_VISIBLE const char *
|
||||
BOOST_ARCHIVE_XML_TRACKING(){
|
||||
return "tracking_level";
|
||||
}
|
||||
BOOST_SYMBOL_VISIBLE const char *
|
||||
BOOST_ARCHIVE_SYMBOL_VISIBLE const char *
|
||||
BOOST_ARCHIVE_XML_VERSION(){
|
||||
return "version";
|
||||
}
|
||||
BOOST_SYMBOL_VISIBLE const char *
|
||||
BOOST_ARCHIVE_SYMBOL_VISIBLE const char *
|
||||
BOOST_ARCHIVE_XML_SIGNATURE(){
|
||||
return "signature";
|
||||
}
|
||||
|
||||
@@ -307,7 +307,7 @@ void_caster::recursive_unregister() const {
|
||||
|
||||
} // namespace void_cast_detail
|
||||
|
||||
BOOST_SYMBOL_VISIBLE void const *
|
||||
BOOST_SERIALIZATION_SYMBOL_VISIBLE void const *
|
||||
void_upcast(
|
||||
extended_type_info const & derived,
|
||||
extended_type_info const & base,
|
||||
@@ -341,7 +341,7 @@ void_upcast(
|
||||
return NULL;
|
||||
}
|
||||
|
||||
BOOST_SYMBOL_VISIBLE void const *
|
||||
BOOST_SERIALIZATION_SYMBOL_VISIBLE void const *
|
||||
void_downcast(
|
||||
extended_type_info const & derived,
|
||||
extended_type_info const & base,
|
||||
|
||||
Reference in New Issue
Block a user