Boost logo

Boost Users :

From: Daniel James (daniel_at_[hidden])
Date: 2004-11-28 15:27:18


Jeffrey Holle wrote:
> The problem is no matter what position I place this include file in this
> *.h file, I get the following error.
> boost/serialization/shared_ptr.hpp:26:2: #error "include
> <boost/serialization/shared_ptr> first
>
> This is a self reference, what is it trying to say?
>
> In other words, what do I have to include before
> boost/serialization/shared_ptr.hpp to make it happy?

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'.

Hope that helps.

Daniel


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