Boost logo

Boost Users :

Subject: Re: [Boost-users] BOOST_FUSION_ADAPT_STRUCT
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2010-01-09 16:39:06


> 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


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