Follow Us
Contribute
  • Register
Errorbase is a collaborative writing project, that aims to build the largest trouble-shooting guide about all kinds of error messages.

Categories

0 votes

The compiler detected a problem with an explicit instantiation of a template. For example, you cannot explicitly instantiate a template in a function. Ex:

class A {
public:
   template
   int getit(int i , T * it ) {
      return i;
   }
   template int A::getit(int i, double * it);   // C2252
};

int main() {
   template int A::getit(int i, long * it);   // C2252
}

requested by (170k points)
edited by

Please log in or register to to add a solution for this error.

...