Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2005-04-11 21:43:38


The syntax error doesn't suggest anything to do with is_abstract. Post a
bigger part of the code. Also, make sure the base class is in fact
abstract. That is, has at least one function declared in the header with = 0
.

Robert Ramey
Alex Olivas wrote:
> I'm trying to serialize an abstract base class.
> I used the BOOST_IS_ABSTRACT macro,
> but the compile fails with the following error...
>
> public/dataclasses/I3Particle.h:225: syntax error before `namespace'
> public/dataclasses/I3Particle.h:225: syntax error before `}' token
>
> line 225 of I3Particle is...
> BOOST_IS_ABSTRACT(I3Particle);
>
> Is is not as simple as adding this one line? I'm using gcc 3.2.3.
> Thanks,
> Alex.


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