$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] overload resolution with boost::function
From: Igor R (boost.lists_at_[hidden])
Date: 2010-09-18 14:57:09
> I am trying to use objects of boost::function as parameters to overloaded function. However, the compiler fails to automatically resolve the function type when I use a function pointer:
a function pointer is implicitly convertible to boost::function, so
there's an ambiguity.
> Is there any way to have the accept function call resolved automatically without creating explicit boost::function object?
I don't know what you intend to do inside accept(), but maybe you
could make it a template that expect a "callable" parameter.