
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
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
To: boost-users@lists.boost.org 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
); Would wrapping the argument with in braces not help? Ex: BOOST_CLASS_EXPORT((KukuBase
)); -dky