Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-08-25 04:26:39


This problem is caused by a MSVC bug triggered by the

using namespace boost;

directive in boost/serialization/detail/shared_ptr_132.hpp:45.

You should be able to fix that by deleting the lines

#if !BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT( 0x560) )
using namespace boost;
#endif

and changing

#if BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT( 0x564) )
    template<class Y>
    explicit shared_ptr(Y * p): px(p), pn(p,boost::checked_deleter<Y>()) //
Y must be complete
#else
    template<class Y>
    explicit shared_ptr(Y * p): px(p), pn(p, checked_deleter<Y>()) // Y must
be complete
#endif

to just

    template<class Y>
    explicit shared_ptr(Y * p): px(p), pn(p,boost::checked_deleter<Y>()) //
Y must be complete

----- Original Message -----
From: "Hansi" <hansipet_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Monday, August 25, 2008 11:12
Subject: [boost] Problems with boost 1.36 and serialization library
withVS2005 SP1

Hello,

at the moment I wont to switch from boost 1.34.1 to 1.36. But now I have
a compile error witch depends from the serialization error. I have a
managed application and for that there is also a definition array in the
cli namespace.
The new version of boost seems to define somewhere the namespace boost
globally and so it is not anymore possilbe to compile the application.

I have searched where this problem exists but I don't have found the
header...
I have found only that the problem exists when this 2 headeres are included

#include <boost/serialization/detail/shared_ptr_132.hpp>
#include <boost/archive/basic_binary_iprimitive.hpp>

Has anyone an idea how I can solve the problem?

Best regards
Hansjörg

_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost


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