
20 May
2008
20 May
'08
9:28 p.m.
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...