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:
class A { static int i; }; int A::i = -1;
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|