
14 Sep
2012
14 Sep
'12
5:43 p.m.
Hi. I think it can be solved by using the BOOST_IDENTITY_TYPE. #include <boost/fusion/include/define_struct.hpp> #include <boost/utility/identity_type.hpp> template<int a, int b> struct AB {}; struct Silly{ AB<2,3> ab; }; BOOST_FUSION_ADAPT_STRUCT( Silly, (BOOST_IDENTITY_TYPE((AB<2,3>)), ab)) ::Silly s; http://ideone.com/WEnJQ 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.