
21 May
2008
21 May
'08
6:31 a.m.
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/ada...