15 Sep
2012
15 Sep
'12
8:54 a.m.
maybe another solution is #define AB<2,3> MYABTYPE BOOST_FUSION_ADAPT_STRUCT( , Silly, (MYABTYPE, ab)) #undef MYABTYPE 2 lines more, but sometimes it makes the code a bit more readable. On 2012-09-15 01:43, osyo manga wrote:
Hi.
I think it can be solved by using the BOOST_IDENTITY_TYPE.
#include
#include template
struct AB {}; struct Silly{ AB<2,3> ab; };
BOOST_FUSION_ADAPT_STRUCT( Silly, (BOOST_IDENTITY_TYPE((AB<2,3>)), ab))
::Silly s;
BOOST_IDENTITY_TYPE can be used from Boost 1.50.0.
http://www.boost.org/doc/libs/release/libs/utility/identity_type/doc/html/in...
Thanks. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users