E2420 Explicit instantiation can only be used at global scope (C++)
Go Up to Compiler Errors And Warnings (C++) Index
Explicit instantiation cannot be specified at any level other than namespace or global scope. For example:
template<class T> class foo { }; template class foo<char>;// OK: at global scope int main() { template class foo<int>:// error: local scope }