When I look at the new code in type_traits/is_abstract for compilers which can't implement correct is_abstract, it seems it marks any polymophic class as abstract. This would conflict with the serialization system which really needs to know if a class is really abstract - not just polymorphic. I would be curious as to why type_traits/is_abstract makes this the default. The serialization system makes "false" the default. Robert Ramey Richard Jennings wrote:
I'm getting a compile error with my code to do with the boost::is_abstract class for compilers that don't support type_traits/is_abstract, i.e. those that have BOOST_NO_IS_ABSTRACT defined, BCB 5.6.4 in my case.
Serialization/is_abstract.hpp defines an is_abstract class if BOOST_NO_IS_ABSTRACT is defined rather than including type_traits/is_abstract.hpp. With 1.33 RC1 type_traits/is_abstract.hpp now defines an is_abstract class if BOOST_NO_IS_ABSTRACT is defined, which it didn't use to do. Thus the class boost::is_abstract is multiply defined.
Minimal code to reproduce the error is:
#include
#include int main(int argc, char* argv[]) { return 0; }
Compile that with BCB5.6.4 and you get: [C++ Error] is_abstract.hpp(32): E2238 Multiple declaration for 'is_abstract<T>' [C++ Error] is_abstract.hpp(130): E2344 Earlier declaration of 'is_abstract<T>'
The first is serialization/is_abstract.hpp the second is type_traits/is_abstract.hpp.
Perhaps serialization/is_abstract.hpp could check for type_traits/is_abstract.hpp having already been included or perhaps the serialization version is not now needed?
Richard
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Doug Gregor Sent: 01 August 2005 18:04 To: boost-users@lists.boost.org Subject: [Boost-users] [1.33.0] Release candidate #1 is available
Boost 1.33.0 release candidate #1 is now available here:
http://www.osl.iu.edu/~dgregor/boost-1.33.0/
There are two sets of files important for this release:
- boost_1_33_0_rc1.*: The actual release candidate - boost_1_33_0_(docbook|fo|man).*: The documentation in other formats
Please download and unpack the archives, browse the documentation, try the release with your favorite compiler, etc.
Thanks! Doug Gregor 1.33.0 Release Manager
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users