Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2005-08-03 12:12:50


It's always a good idea to put the names of the libraries concerned in
your subject line:

http://boost-consulting.com/boost/more/discussion_policy.htm#effective

"Richard Jennings" <Richard.Jennings_at_[hidden]> writes:

> 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 <boost/type_traits.hpp>
> #include <boost/serialization/is_abstract.hpp>
>
> 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_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Doug Gregor
> Sent: 01 August 2005 18:04
> To: boost-users_at_[hidden]
> 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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net