Boost logo

Boost Users :

Subject: Re: [Boost-users] [serialization] Export macro doesnt work
From: Robert Ramey (ramey_at_[hidden])
Date: 2011-08-11 00:51:12


Jari wrote:
> Hi
> I was trying to use BOOST_CLASS_EXPORT for all my classes in order to
> save them but I always got unregistered class error.
> So I used oa.register_type<object>(); for the class that was causing
> the error and problem solved. But why doesnt the BOOST_CLASS_EXPORT
> macro work?

because you're not using it properly.

> Why I need to use oa.register_type<object>(); ?

because you can't get EXPORT to work.

Robert Ramey

> Im using Boost 1.46.1
>
> Thanks


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