
Hello, Can I use this macro with specialized templates as well? template <typename T> struct range { T min ; T max ; } ; BOOST_FUSION_ADAPT_STRUCT( range<double>, (double, min) (double, max) } Rds,

Can I use this macro with specialized templates as well?
template <typename T> struct range { T min ; T max ; } ;
BOOST_FUSION_ADAPT_STRUCT( range<double>, (double, min) (double, max) }
I don't see any reason why it shouldn't work. Did you actually try it? Regards Hartmut --------------- Meet me at BoostCon www.boostcon.com

-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Hartmut Kaiser Sent: 09 January 2010 21:39 To: boost-users@lists.boost.org Subject: Re: [Boost-users] BOOST_FUSION_ADAPT_STRUCT
Can I use this macro with specialized templates as well?
template <typename T> struct range { T min ; T max ; } ;
BOOST_FUSION_ADAPT_STRUCT( range<double>, (double, min) (double, max) }
I don't see any reason why it shouldn't work. Did you actually try it?
Regards Hartmut
It did. I was investigating some obscure error that resulted of me using << instead of >> and I thought it may be because of that, but that was a wrong guess. Thanks,
participants (2)
-
Hartmut Kaiser
-
Hicham Mouline