Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2005-08-08 10:54:47


>
> demo_exception.cpp
> e:\SDK\Boost\boost_1_33_0_RC2\libs\serialization\vc7ide\..\..\..\boost\archive\detail\oserializer.hpp(566)
>> error C2027: use of undefined type
> 'boost::STATIC_ASSERTION_FAILURE<x>'
> with
> [
> x=false
> ]
>

Look into the new documentation under the section "Rationale" for and
explanation of this issue and how to address it.

> (iserializer is same problem:)
>
> Boost\boost_1_33_0_RC2\libs\serialization\vc7ide\..\..\..\boost\archive\detail\iserializer.hpp(544)
>> error C2027: use of undefined type
> 'boost::STATIC_ASSERTION_FAILURE<x>'

This doesn't show up with demo_exception.cpp, I would have to see more
context. Again, this is described in the new "Rational Section"

> It is especially difficult to enforce it if you
> serialize members with "ar & m1 & m2 .. " notation.

This is not enforced by the "&" operator for just this reason.

>
> ----- demo_shared_ptr:
>
> Boost\boost_1_33_0_RC2\libs\serialization\example\demo_shared_ptr.cpp(138)
>> error C2039: 'sp_counted_base_impl' : is not a member
> of 'boost::detail'
> Boost\boost_1_33_0_RC2\libs\serialization\example\demo_shared_ptr.cpp(138)
>> error C2061: syntax error : identifier
> 'sp_counted_base_impl'
> ....

This is an error in the demo - it wasn't updated for the new serialization
of shared pointers. I've fixed it and now plan to check it into the
developement CVS.

> There are some errors with invalid project references
> and library names at all (linker errors, tries to link
> with wrong libs).
> It seems the project files are out of sync for long time.

I don't see this on my machine. If you're projects specify a specific
library to link to, this may be an issue with the new auto-link. See the
section in the documentation of auto-linking.

> Additionally:
>
> boost\boost\archive\detail\interface_iarchive.hpp(73) :
> error C2039: 'basic_iarchive' : is not a member of
> 'boost::archive::polymorphic_iarchive'

..

> #include "boost/archive/polymorphic_oarchive.hpp"
> #include "boost/archive/polymorphic_iarchive.hpp"
>
> #include "boost/serialization/shared_ptr.hpp"
> #include "boost/serialization/serialization.hpp"
> #include "boost/serialization/utility.hpp"
> #include "boost/serialization/list.hpp"
> #include "boost/serialization/version.hpp"
> #include "boost/serialization/map.hpp"
> #include "boost/serialization/vector.hpp"
> #include "boost/serialization/string.hpp"
> #include "boost/serialization/split_member.hpp"

I just compiled a test file on my machine. The test file consisted of just
the above headers. It compiled with no problem so I can't reproduce it.

Thanks for helping with the testing of this.

Robert Ramey


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