Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: C++ Classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ Classes



I couldn't seem to find anything on Apple's website, but the error I'm
getting while compiling my code gives me the error:

request for member `membername' in `objectname()', which is of
non-aggregate type `classname ()()'

This sounds like you have a line like

	MyClass* n = new MyClass();

or

	MyClass		foo();

instead of

	MyClass* n = new MyClass;

or

	MyClass		foo;

Could that be the case?
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
       "The Witnesses of TeachText are everywhere..."
                   http://www.zathras.de
_______________________________________________
studentdev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/studentdev
Do not post admin requests to the list. They will be ignored.

References: 
 >C++ Classes (From: Derek Kuhl <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.