Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
tvanriper is currently offline  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 << Smile. 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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Optimized memcmp for x86
Next Topic: THISBACK and function-overloading
Goto Forum:
  


Current Time: Mon Aug 18 19:19:12 CEST 2025

Total time taken to generate the page: 0.07331 seconds