[proto] transform with calling templates

Hello,
I had the following transform and function object:
struct bind_functions_transform
: proto::when
<
proto::terminal
struct bind_method_call : proto::callable
{
template <typename T>
struct result
{
typedef typename boost::function_types::parameter_types<T>::type
parameter_types;
typedef typename boost::mpl::next
template <typename T>
struct bind_method_call : proto::callable [...]
And then I received the following error:
../boost_1_50_0/boost/proto/transform/detail/preprocessed/construct_funop.hpp:24:33:
error: no matching function for call to
‘jvb::binding::bind_method_call
And it worked. Well, my question is: is this a known limitation? I didn't find it in proto documentation. I'm using GCC 4.7.1 and x86_64 with Linux Regards, -- Felipe Magno de Almeida

On 10/21/2012 12:34 PM, Felipe Magno de Almeida wrote:
my question is: is this a known limitation? I didn't find it in proto documentation.
It's in the docs. You can read the reason for it here: http://www.boost.org/doc/libs/1_51_0/doc/html/proto/users_guide.html#boost_p... It's admittedly a pitfall. Sorry you fell in. :( -- Eric Niebler BoostPro Computing http://www.boostpro.com
participants (2)
-
Eric Niebler
-
Felipe Magno de Almeida