19 Sep
2012
19 Sep
'12
3:54 p.m.
On 9/19/12 11:49 PM, Joel de Guzman wrote:
On 9/15/12 12:25 AM, Nevin Liber wrote:
The following piece of code:
#include
template
struct AB {}; BOOST_FUSION_ADAPT_STRUCT( , Silly, (AB<2,3>, ab))
fails with:
main.cpp:8:15: error: macro "BOOST_FUSION_ADAPT_STRUCT" passed 3 arguments, but takes just 2 main.cpp:6:1: error: 'BOOST_FUSION_ADAPT_STRUCT' does not name a type
I am assuming this is because the preprocessor splits line 8 into 'AB<2', '3>', 'ab'.
How do I work around this?
Will:
help you?
Ah hit send before I could understand more. Please disregard. Regards, -- Joel de Guzman http://www.boostpro.com http://boost-spirit.com