Compiler Error C2969
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at 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
// compile with: /c
class A {
int i;
public:
A(int i) {}
};
A anA(1);
class B {
A a;
B() : a(anA); // C2969
// try the following line instead
// B() : a(anA) {}
};
Show: