RAD Studio |  |

E2231: Member 'member' cannot be used without an object (C++)

This means that you have written class::member where 'member' is an ordinary (non-static) member, and there is no class to associate with that member.

For example, it is legal to write this:

Copy Code

    obj.class::member

but not to write this:

Copy Code

    class::member

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