RAD Studio |  |

E2068: 'identifier' is not a non-static data member and can't be initialized here (C++)

Only data members can be initialized in the initializers of a constructor.

This message means that the list includes a static member or function member.

Static members must be initialized outside of the class, for example:

Copy Code

    class A { static int i; };
    int A::i = -1;

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!