
14 Sep
2012
14 Sep
'12
1:35 p.m.
AMDG On 09/14/2012 11:24 AM, Nevin Liber wrote:
On 14 September 2012 12:43, Steven Watanabe <watanabesj@gmail.com> wrote:
#include <boost/fusion/include/adapt_struct.hpp>
template<int a, int b> struct AB {};
BOOST_FUSION_ADAPT_STRUCT( , Silly, (AB<2,3>, ab))
fails
<snip>
I was hoping for something more scalable. Amongst other things, the real code has a number of boost::array of varying types of sizes, so it is either a lot of typedefs or a lot of wrapper classes to get the number of template arguments down to one.
There's this trick: function_traits<void(AB<2, 3>)>::arg1_type. Unfortunately, this loses CV qualifiers. In Christ, Steven Watanabe