C++ specialization of template function inside template class

AFAIK (and the standards experts can correct me), you cannot specialize a templated function of a class template without specializing the class itself…

i.e. the following I think will work:

template <> template <> int X<Y>::getAThing<int>(std::string param) {
   return getIntThing(param); // Some function that crunches on param and returns an int.
}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)