Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Serialization not building
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2009-10-14 03:04:06


On Wed, Oct 14, 2009 at 12:54 AM, OvermindDL1 <overminddl1_at_[hidden]> wrote:
> I attempted the build Boost.Serialization from trunk and got some errors:
>
> binary_iarchive.cpp
> .\boost/serialization/void_cast.hpp(255) : error C2572:
> 'boost::serialization::void_cast_register' : redefinition of default
> parameter : parameter 2
>        .\boost/serialization/void_cast_fwd.hpp(30) : see declaration
> of 'boost::serialization::void_cast_register'
> .\boost/serialization/void_cast.hpp(255) : error C2572:
> 'boost::serialization::void_cast_register' : redefinition of default
> parameter : parameter 1
>        .\boost/serialization/void_cast_fwd.hpp(30) : see declaration
> of 'boost::serialization::void_cast_register'
>

In void_cast_fwd.hpp, on lines 30 - 33, I changed it from this:

inline const void_cast_detail::void_caster & void_cast_register(
    const Derived * dnull = NULL,
    const Base * bnull = NULL
) BOOST_USED;

To this:

inline const void_cast_detail::void_caster & void_cast_register(
    const Derived * dnull,
    const Base * bnull
) BOOST_USED;

And bjam no longer complains with compile errors.


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