mirror of
https://github.com/boostorg/serialization.git
synced 2026-02-09 23:32:41 +00:00
simplifing visibility/autolink
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
#include <string>
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/preprocessor/empty.hpp>
|
||||
#include <boost/archive/detail/decl.hpp>
|
||||
|
||||
// note: the only reason this is in here is that windows header
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_ARCHIVE_DYN_LINK)
|
||||
// export if this is our own source, otherwise import:
|
||||
#ifdef BOOST_ARCHIVE_SOURCE
|
||||
# define BOOST_ARCHIVE_DECL __declspec(dllexport)
|
||||
# define BOOST_ARCHIVE_DECL BOOST_SYMBOL_EXPORT
|
||||
#else
|
||||
# define BOOST_ARCHIVE_DECL __declspec(dllimport)
|
||||
# define BOOST_ARCHIVE_DECL BOOST_SYMBOL_IMPORT
|
||||
#endif // BOOST_ARCHIVE_SOURCE
|
||||
#endif // DYN_LINK
|
||||
#endif // BOOST_HAS_DECLSPEC
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
// http://www.boost.org/more/separate_compilation.html
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/preprocessor/facilities/empty.hpp>
|
||||
|
||||
#if defined(BOOST_HAS_DECLSPEC)
|
||||
#if (defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK))
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#include <boost/assert.hpp>
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/preprocessor/empty.hpp>
|
||||
#include <boost/archive/detail/decl.hpp>
|
||||
#include <boost/archive/archive_exception.hpp>
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/detail/workaround.hpp>
|
||||
#include <boost/preprocessor/facilities/empty.hpp>
|
||||
|
||||
// note: this version incorporates the related code into the the
|
||||
// the same library as BOOST_ARCHIVE. This could change some day in the
|
||||
@@ -39,24 +38,16 @@
|
||||
#endif
|
||||
// export if this is our own source, otherwise import:
|
||||
#if defined(BOOST_SERIALIZATION_SOURCE)
|
||||
#if defined(__BORLANDC__)
|
||||
#define BOOST_SERIALIZATION_DECL(T) T __export
|
||||
#else
|
||||
#define BOOST_SERIALIZATION_DECL(T) __declspec(dllexport) T
|
||||
#endif
|
||||
#define BOOST_SERIALIZATION_DECL BOOST_SYMBOL_EXPORT
|
||||
#else
|
||||
#if defined(__BORLANDC__)
|
||||
#define BOOST_SERIALIZATION_DECL(T) T __import
|
||||
#else
|
||||
#define BOOST_SERIALIZATION_DECL(T) __declspec(dllimport) T
|
||||
#endif
|
||||
#define BOOST_SERIALIZATION_DECL BOOST_SYMBOL_IMPORT
|
||||
#endif // defined(BOOST_SERIALIZATION_SOURCE)
|
||||
#endif // defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK)
|
||||
#endif // BOOST_HAS_DECLSPEC
|
||||
|
||||
// if BOOST_SERIALIZATION_DECL isn't defined yet define it now:
|
||||
#ifndef BOOST_SERIALIZATION_DECL
|
||||
#define BOOST_SERIALIZATION_DECL(T) T
|
||||
#define BOOST_SERIALIZATION_DECL
|
||||
#endif
|
||||
|
||||
// enable automatic library variant selection ------------------------------//
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace void_cast_detail{
|
||||
class void_caster;
|
||||
}
|
||||
|
||||
class BOOST_SERIALIZATION_DECL(BOOST_PP_EMPTY()) extended_type_info :
|
||||
class BOOST_SERIALIZATION_DECL 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_SERIALIZATION_DECL(BOOST_PP_EMPTY()) extended_type_info_no_rtti_0 :
|
||||
class BOOST_SERIALIZATION_DECL extended_type_info_no_rtti_0 :
|
||||
public extended_type_info
|
||||
{
|
||||
protected:
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace boost {
|
||||
namespace serialization {
|
||||
namespace typeid_system {
|
||||
|
||||
class BOOST_SERIALIZATION_DECL(BOOST_PP_EMPTY()) extended_type_info_typeid_0 :
|
||||
class BOOST_SERIALIZATION_DECL extended_type_info_typeid_0 :
|
||||
public extended_type_info
|
||||
{
|
||||
virtual const char * get_debug_info() const {
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
#include <boost/preprocessor/control/if.hpp>
|
||||
#include <boost/preprocessor/comparison/greater.hpp>
|
||||
#include <boost/preprocessor/facilities/empty.hpp>
|
||||
|
||||
namespace std{
|
||||
#if defined(__LIBCOMO__)
|
||||
|
||||
@@ -47,7 +47,7 @@ class extended_type_info;
|
||||
// Return the altered pointer. If there exists no sequence of casts that
|
||||
// can transform from_type to to_type, return a NULL.
|
||||
|
||||
BOOST_SERIALIZATION_DECL(void const *)
|
||||
BOOST_SERIALIZATION_DECL void const *
|
||||
void_upcast(
|
||||
extended_type_info const & derived,
|
||||
extended_type_info const & base,
|
||||
@@ -67,7 +67,7 @@ void_upcast(
|
||||
));
|
||||
}
|
||||
|
||||
BOOST_SERIALIZATION_DECL(void const *)
|
||||
BOOST_SERIALIZATION_DECL void const *
|
||||
void_downcast(
|
||||
extended_type_info const & derived,
|
||||
extended_type_info const & base,
|
||||
@@ -89,18 +89,18 @@ void_downcast(
|
||||
|
||||
namespace void_cast_detail {
|
||||
|
||||
class BOOST_SERIALIZATION_DECL(BOOST_PP_EMPTY()) void_caster :
|
||||
class BOOST_SERIALIZATION_DECL void_caster :
|
||||
private boost::noncopyable
|
||||
{
|
||||
friend
|
||||
BOOST_SERIALIZATION_DECL(void const *)
|
||||
BOOST_SERIALIZATION_DECL void const *
|
||||
boost::serialization::void_upcast(
|
||||
extended_type_info const & derived,
|
||||
extended_type_info const & base,
|
||||
void const * const
|
||||
);
|
||||
friend
|
||||
BOOST_SERIALIZATION_DECL(void const *)
|
||||
BOOST_SERIALIZATION_DECL void const *
|
||||
boost::serialization::void_downcast(
|
||||
extended_type_info const & derived,
|
||||
extended_type_info const & base,
|
||||
|
||||
Reference in New Issue
Block a user