
3 May
2007
3 May
'07
10:32 p.m.
Christian Henning wrote: ...
, bind( &fusion::at_key< fields::_id_ >, _1 )
...
test.cpp(43) : error C2783: 'result_of::at_key
::type boost::fusion::at_key(const Sequence &)' : could not deduce template argument for 'Sequence'
Have you tried supplying the Sequence template parameter? Something like: bind( &fusion::at_key< fields::_id_, table_type >, _1 ) or, if this doesn't work: bind( &fusion::at_key< fields::_id_, table_type const >, _1 ) If this doesn't help, I'm afraid that your get_id wrapper is the best workaround. It's possible to cast &fusion::at_key<_id_> to the correct type, but I consider the get_id approach superior in general.