私はテンプレートメタプログラミングにかなり慣れていないので、このアプローチで私の思考エラーを見つけることができません:
template <typename T>
typename T::ReturnType Query(const std::string& Str);
template <>
ResultTypeRowCount Query(const std::string& Str) { return this->queryRowCount(Str); }
ResultTypeRowCount は、ReturnType という名前の public typedef を実装します。
読んでくれてありがとう