E2097 Explicit instantiation only allowed at file or namespace scope (C++)
Go Up to Compiler Errors And Warnings (C++) Index
The explicit instantiation operator "template" can only be used within global or namespace scope. It cannot be used to qualify a local class or a class member, for example.