Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-05-03 18:32:47


Christian Henning wrote:

...

> , bind( &fusion::at_key< fields::_id_ >, _1 )

...

> test.cpp(43) : error C2783: 'result_of::at_key<const
> Sequence,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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net