Export (0) Print
Expand All
Expand Minimize
0 out of 8 rated this helpful - Rate this topic

Compiler Error C2436

Error Message

'identifier' : member function or nested class in constructor initializer list

Member functions or local classes in the constructor initializer list cannot be initialized.

The following sample generates C2436:

// C2436.cpp
struct S{
   int f();
   struct Inner{
      int i;
   S():f(10), Inner(0){}   // C2436
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.