I am trying to defining a specific function pointer type to be used in my calls of boost::bind to resolve issue related to function overloaded not recognized ( by calling static_cast ). I am defining that typedef explicitly for resolving ambiguity on std::string::compare.
When I write this function I got errors.
typedef int(std::string* resolve_type)(const char*)const;
Do you know what’s wrong with this typedef?
I think you want this.
Example.
http://liveworkspace.org/code/4971076ed8ee19f2fdcabfc04f4883f8
And example with bind
http://liveworkspace.org/code/ff1168db42ff5b45042a0675d59769c0