Possible duplicate:
std :: bind overload
Consider the following C ++ example
class A { public: int foo(int a, int b); int foo(int a, double b); }; int main() { A a; auto f = std::async(std::launch::async, &A::foo, &a, 2, 3.5); }
This gives "std :: async": cannot output the template argument, since the function argument is ambiguous. How to eliminate this ambiguity?
c ++ method-overloading stdasync
Amith chinthaka
source share