Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » What does , means?
Re: What does , means? [message #15269 is a reply to message #15144] |
Mon, 14 April 2008 16:50   |
 |
tvanriper
Messages: 85 Registered: September 2007 Location: Germantown, MD, USA
|
Member |
|
|
cbpporter wrote on Wed, 02 April 2008 11:39 |
Quote: | Once again I'm not "guru enough" to know whether comma can be overloaded (but why not, looks reasonable ... except it makes me feel sick when I imagine it ).
|
I had to look it up also, and yes, it can be done. But I never did this myself. I couldn't and can't find a good reason to do this, not even as an alternative to cout << . Especially since arguments can be evaluated more than once.
|
In the boost library, they made use of overloading this operator to help make code more legible in their Assign library.
Give this a read and judge for yourself:
http://boost.org/doc/libs/1_35_0/libs/assign/doc/index.html
|
|
|
 |
|
What does , means?
|
 |
|
Re: What does , means?
By: mr_ped on Wed, 02 April 2008 09:56
|
 |
|
Re: What does , means?
|
 |
|
Re: What does , means?
By: Werner on Wed, 02 April 2008 12:39
|
 |
|
Re: What does , means?
By: mrjt on Wed, 02 April 2008 14:24
|
 |
|
Re: What does , means?
By: mirek on Wed, 02 April 2008 15:11
|
 |
|
Re: What does , means?
By: mr_ped on Wed, 02 April 2008 17:30
|
 |
|
Re: What does , means?
|
 |
|
Re: What does , means?
|
 |
|
Re: What does , means?
|
 |
|
Re: What does , means?
By: mdelfede on Mon, 14 April 2008 23:42
|
 |
|
Re: What does , means?
|
 |
|
Re: What does , means?
By: mr_ped on Thu, 03 April 2008 00:27
|
 |
|
Re: What does , means?
|
 |
|
Re: What does , means?
|
Goto Forum:
Current Time: Mon Aug 18 21:26:09 CEST 2025
Total time taken to generate the page: 0.07375 seconds
|