Boost logo

Boost Testing :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2005-07-12 08:33:21


Markus Schöpflin wrote:

> Duh! I wonder if it's a wise choice to map is_abstract to is_polymorphic...
> But anyway, seems like serialization/is_abstract.hpp needs some tuning. Why
> don't you rely on BOOST_NO_IS_ABSTRACT in this header?

Attached patch makes this test now pass on this platform with the modified
template instantiation mode. I have no idea if this is what you actually
wanted to do, but it looks resonable to me.

Maybe you can make something of it.

Markus

Index: is_abstract.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/serialization/is_abstract.hpp,v
retrieving revision 1.5
diff -u -w -r1.5 is_abstract.hpp
--- is_abstract.hpp 21 Jun 2005 05:19:04 -0000 1.5
+++ is_abstract.hpp 12 Jul 2005 13:30:28 -0000
@@ -22,10 +22,7 @@
 #include <boost/mpl/bool_fwd.hpp>
 
 #ifndef BOOST_TT_IS_ABSTRACT_CLASS_HPP
-#if defined(__GNUC__) && (34 <= __GNUC__ * 10 + __GNU_MINOR__) \
- || defined(_MSC_VER) && (1310 <= _MSC_VER) \
- || defined(__EDG_VERSION__) \
- /**/
+#ifndef BOOST_NO_IS_ABSTRACT
     #include <boost/type_traits/is_abstract.hpp>
 #else
 // default to false if not supported
@@ -40,7 +37,7 @@
         BOOST_STATIC_CONSTANT(bool, value = is_abstract::type::value);
     };
     } // namespace boost
-#endif
+#endif // BOOST_NO_IS_ABSTRACT
 #endif // BOOST_TT_IS_ABSTRACT_CLASS_HPP
 
 // define a macro to make explicit designation of this more transparent


Boost-testing list run by mbergal at meta-comm.com