|
Boost Users : |
Subject: Re: [Boost-users] fusion struct adapt macro, construct the struct from a fusion vector
From: Joel de Guzman (joel_at_[hidden])
Date: 2010-01-20 20:16:11
On 1/21/2010 5:24 AM, Nat Goodspeed wrote:
> Joel de Guzman wrote:
>
>> Or, if you can wait a bit, I do intend to write an intrusive version of
>> the FUSION_ADAPT_STRUCT which also generates the struct along with
>> the constructors and assignment to/from fusion sequences. I dunno,
>> perhaps you can persuade a fusion guru to write the code
>> (Christopher)? :-)
>
> This isn't all of the above, but the attached worked for me as of Boost
> 1.35.0...
Aha! Someone took the challenge :-) I should post more challenges like
this. There are lots of bits and pieces that I'd appreciate help on.
This is one of 'em.
Anyway... my hesitation is that the struct is placed in global namespace.
Is it still usable when the macro invoked in a specific namespace?
Regards,
-- Joel de Guzman http://www.boostpro.com http://spirit.sf.net http://www.facebook.com/djowel Meet me at BoostCon http://www.boostcon.com/home http://www.facebook.com/boostcon
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