Boost logo

Boost :

Subject: Re: [boost] [serializatrion] problems with 1.44
From: Stefan van Kessel (van_kessel_at_[hidden])
Date: 2010-08-19 07:44:03


On 8/19/2010 1:34 PM, Dmitry Vinogradov wrote:
> I think something was broken in Boost 1.44. This code fails to compile
> with 1.44, but compiles with 1.43 (MSVC 10.0):
>
> #include <boost/variant.hpp>
> #include <boost/serialization/variant.hpp>
> #include <boost/archive/binary_iarchive.hpp>
> #include <sstream>
>
> int main()
> {
> std::stringstream s;
> boost::archive::binary_iarchive ar(s);
> boost::variant<int, char> x;
> ar >> x;
>
> return 0;
> }
>
> e:\libraries\boost\boost\serialization\variant.hpp(139):
> error C3861: 'BOOST_SERIALIZATION_NVP': identifier not found
>
> Am I missing something or is it a bug?
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
If you change the include order to:
#include <boost/archive/binary_iarchive.hpp>
#include <boost/variant.hpp>
#include <boost/serialization/variant.hpp>
it works. My guess is that a include that's needed has been removed.
Maybe I'll have a look later on to see if I can find it.

Have a nice day,
Stefan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk