I have this template set
__Self &set(const char *name, lua_CFunction func)
{ return rawSet(name, FuncCall::create(func)); }
....
that i use like:
.set("child_value", &pugi::xml_node::child_value)
But child_value is overloaded with
const char_t* xml_node::child_value(const char_t* name) const
const char_t* xml_node::child_value() const
and the compiler is giving this error:
error C2668: 'SLB::Class<T,W>::set' : ambiguous call to overloaded function
How could i fix this error ? I want the child_value() version.
Define typedefs as:
And then write: