Boost logo

Boost Users :

From: dhruva (dhruvakm_at_[hidden])
Date: 2008-05-20 10:18:06


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

-- 
Contents reflect my personal views only!

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