Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 575 Bytes

compiler-error-c2436.md

File metadata and controls

26 lines (22 loc) · 575 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2436
Compiler Error C2436
11/04/2016
C2436
C2436
ca4cc813-bc1d-4c0a-9a2c-3a5fe673d084

Compiler Error C2436

'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
};