What version are you using? Boost 1.42? 1.43? Trunk? This looks like it should work in 1.43, or at least the trunk, but there was a known bug with single element structs before that.
I am using Boost 1.42 and hence Spirit 2.2. single-elem struct is just
a coincidence my problem still appears if I use a two-elem struct
(again, the code enclosed and relevant extracts follow):
struct Data { char val1; char val2; };
BOOST_FUSION_ADAPT_STRUCT(Data,(char, val1)(char, val2));
struct TestGrammar
: qi::grammar
This is usually better to ask on the Spirit mailing list. :) Thanks for the advice, I will try that.
Regards, &rzej