bug shows in intel 7.1

[SVN r24486]
This commit is contained in:
Robert Ramey
2004-08-15 15:02:04 +00:00
parent cbe62a5723
commit 3f95d1c3d6
2 changed files with 13 additions and 3 deletions

View File

@@ -38,6 +38,11 @@
#include <boost/archive/detail/known_archive_types.hpp>
#if defined(__MWERKS__)
#pragma push
#pragma opt_dead_code off
#endif
namespace boost {
namespace archive {
@@ -167,7 +172,7 @@ const guid_initializer<T, ASeq> guid_initializer<T, ASeq>::instance
#define BOOST_CLASS_EXPORT_GUID_ARCHIVE_LIST(T, K, ASEQ)
// gcc needs special treatment
#elif defined(__GNUC__)
#elif defined(__GNUC__) && (__GNUC__ * 10 + __GNUC_MINOR__) < 34
#define BOOST_CLASS_EXPORT_GUID_ARCHIVE_LIST(T, K, ASEQ) \
namespace boost { namespace archive { namespace detail { \
template \
@@ -194,7 +199,7 @@ const guid_initializer<T, ASeq> guid_initializer<T, ASeq>::instance
template<> \
const guid_initializer<T, ASEQ> \
guid_initializer<T, ASEQ>::instance(K); \
template \
template<> \
const guid_initializer<T, ASEQ> & \
boost_template_instantiate(T &, ASEQ &); \
} } } \
@@ -234,4 +239,8 @@ const guid_initializer<T, ASeq> guid_initializer<T, ASeq>::instance
) \
/**/
#if defined(__MWERKS__)
#pragma pop
#endif
#endif // BOOST_SERIALIZATION_EXPORT_HPP

View File

@@ -41,7 +41,8 @@
# if defined(_WIN32)
# define BOOST_FORCE_INCLUDE(f) __declspec(dllexport) f
# else
# define BOOST_FORCE_INCLUDE(f) f __attribute__ ((used))
//# define BOOST_FORCE_INCLUDE(f) f __attribute__ ((used))
# define BOOST_FORCE_INCLUDE(f) f
# endif
# endif
// MSVC