|
-
February 21st, 2008, 09:09 AM
#4
Re: operator<< overloading
If the correct equivalent is A, this is wrong, because you don't NEED to return the object for that.
You should test your hypothesis with an example program where operator<< returns void and yet you attempt operator chaining. After that contrapositive logic will show you that the correct equivalent is not A, as Zaccheus and treuss have noted.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|