This documentation is archived and is not being maintained.

Compiler Error C2969

syntax error : 'symbol' : expected member function definition to end with '}'

A template member function definition has an unmatched closing brace.

The following sample generates C2969:

// C2969.cpp
class A {
   int i;
   public:
      A(int i) {
      }
};

A anA(1);

class B {
   A a;
   B() : a(anA);// C2969
   /*
   // try ...
   B() : a(anA) {
      // ...
   }
   */
};
int main() {
}
Show: