
On 2/7/2010 9:19 AM, Christopher Schmidt wrote:
vicente.botet schrieb:
On 2/7/2010 3:34 AM, vicente.botet wrote:
Hi,
I need to visit the members of a C++ type using Fusion sequences. For structures I plan to use BOOST_FUSION_ADAPT_STRUCT. I need also to visit also c-arrays (with static size). I see that there is already an adapter for boost::array. Is there an adapter for C-arrays?
Sorry, no. Would you want to contribute one? It's easy if you take a look at the boost::array adapter.
Hi,
Well if doesn't exists I will need to see how to do it :) I will inform you when I reach to get something.
I just added an implementation for adapting plain arrays to the c++0x branch of fusion. You can find the code here:
https://svn.boost.org/trac/boost/browser/sandbox/SOC/2009/fusion/boost/fusio... https://svn.boost.org/trac/boost/browser/sandbox/SOC/2009/fusion/boost/fusio...
Cool! Can you backport that for non-C++0x compilers? 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