I noticed that boost::bind, unlike std::bind, can work with overloaded functions when one of these functions doesn\'t have any parameters. Am I right? Is this documented?
<
The first case compiles well in MSVC10 with both std
and boost
(because MSVC10 doesn't support variadic templates, so std::bind
is implemented similarly to boost::bind
).
The second case wouldn't compile, because bind
can resolve overloads having different arity, but can't resolve overloads that differ by argument types only.