|
Boost Users : |
From: troy d. straszheim (troy_at_[hidden])
Date: 2008-05-20 11:05:05
Or a tmp typedef:
typedef foo<bar> foobar;
BOOST_CLASS_EXPORT(foobar);
last I looked (1.33.1) there were problems when serializing exported templated types
from xml_iarchive. Angle brackes would appear in Bad Places in the archive
file. This works around that as well.
-t
hruva wrote:
> On Tue, May 20, 2008 at 5:02 PM, Lifshitz, Yair <yair.lifshitz_at_[hidden]> wrote:
>
>> While trying to check the reason for BOOST_CLASS_EXPORT not working with
>> templates, I found out the problem is simply a preprocessor issue - it
>> treats each comma as a seperation between values, so
>> it treats a template (as below) as two inputs (and the MACRO accepts only
>> one).
>>
>> ----- Forwarded Message ----
>> From: Robert Ramey <ramey_at_[hidden]>
>> To: boost-users_at_[hidden]
>> Sent: Thursday, May 8, 2008 7:49:08 AM
>> Subject: Re: [Boost-users] Boost serialization: how to register template
>> derivedclass
>>
>> what you would really need is something like
>>
>>
>>
>> BOOST_CLASS_EXPORT(KukuBase<int, 5>);
>
> Would wrapping the argument with in braces not help?
> Ex: BOOST_CLASS_EXPORT((KukuBase<int, 5>));
>
> -dky
>
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