Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
Default param, is this legal
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Vladimir Jovic, post: 4101472"] You asked about this : // --------------------------------------------------------------- .... const MyClass& GetMyClass( const MyClass& default = MyClass() ); .... // --------------------------------------------------------------- That doesn't compile in any compiler. I am glad you figured out yourself ;) Well, I guess you asked for it. This might help you : [URL]http://catb.org/esr/faqs/smart-questions.html[/URL] Nobody told me how to read other's people minds. Whether your code is ok, or not, depends on what do you do in your method, and you change that in every new "example" you post. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
Default param, is this legal
Top