|
Boost Users : |
Subject: Re: [Boost-users] BOOST_FUSION_ADAPT_STRUCT
From: Hicham Mouline (hicham_at_[hidden])
Date: 2010-01-09 16:43:09
> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Hartmut Kaiser
> Sent: 09 January 2010 21:39
> To: boost-users_at_[hidden]
> 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,
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