I encounter a problems about override virtual functions, in fact,it is about hessian (a web service protocol).
it has a base class Object, and some derived classes :
Unfortunately you can't overload functions in C++ by return value. What you could do, if you have the appropriate some_convert_function
in place for all types you need it for would be to create free a template function that looks something like this:
template
std::string toString(T const& t)
{
return some_convert_function(t);
}