11 Jan
2007
11 Jan
'07
8:09 p.m.
I have a function that performs the same task on several data types and data combinations: template <typename T> int f(const type1<T>& x); template <typename T> int f(const type2<T>& x); template <typename T> int f(const type2<T>& x, const type2<T>& y); I want to create a function object out of the second function. However, bind(f, _1) is ambiguous. Is there a way to disambiguate this using a bind call, or do I have to create my own function object? Thanks, Mark