Boost logo

Boost Users :

From: Hansi (hansipet_at_[hidden])
Date: 2008-05-21 02:31:08


I thought olso already that fusion would solve the problem...but I have
only boost 1.34.1 and I can't switch the version at the moment..

Best regards
Hansjörg

Nat Goodspeed schrieb:
> Hansi wrote:
>
>> I have a data struct which has several fields. Now I need to expose this
>> fields as name/value pairs (the best would be if the value is a ref
>> parameter). Okay I can write this things by hand.
>> But is there some solution available to automate this? e.g. some
>> metaprogramming with which I can solve this problem? Has anyone an idea?
>
> Perhaps BOOST_FUSION_ADAPT_STRUCT?
> http://www.boost.org/doc/libs/1_35_0/libs/fusion/doc/html/fusion/adapted/adapt_struct.html


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