RAD Studio |  |

E2351: Static data members not allowed in __published or __automated sections (C++)
Example
Collapse All

Only nonstatic data members and member functions are allowed in __published or __automated sections.

Example
Copy Code

    struct__declspec(delphiclass) clxclass
    {
    __published:
    static intstaticDataMember;// Error
    };

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