Boost logo

Boost Users :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2004-11-29 17:21:51


"Daniel James" wrote:

>> boost/serialization/shared_ptr.hpp:26:2: #error "include
>> <boost/serialization/shared_ptr> first
>>
> Looking at the source code, you have to include
> boost/serialization/shared_ptr.hpp before boost/shared_ptr.hpp.
>
> In case you're curious, there's been a recent thread about the
> implementation of this on the boost development list with the subject
> 'shared_ptr and serialization'.
>
The same problem yesterday ;-)

The discussion is:
http://lists.boost.org/MailArchives/boost/msg02559.php
and the macro
HACK_SERIALIZATION_EXPORT_SHARED_POINTER
works.

BOOST_SHARED_POINTER_EXPORT should
cover functionality of
HACK_SERIALIZATION_EXPORT_SHARED_POINTER.

/Pavel


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