Click here to Skip to main content
11,706,323 members (46,687 online)

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
NewsThe Comma Operator in C++ Pin
Terrence Dorsey13-Feb-13 11:27
staffTerrence Dorsey13-Feb-13 11:27 
GeneralRe: The Comma Operator in C++ Pin
PIEBALDconsult13-Feb-13 14:59
memberPIEBALDconsult13-Feb-13 14:59 
GeneralRe: The Comma Operator in C++ Pin
Stephen Hewitt13-Feb-13 21:00
memberStephen Hewitt13-Feb-13 21:00 
GeneralRe: The Comma Operator in C++ Pin
peterchen13-Feb-13 21:51
memberpeterchen13-Feb-13 21:51 
GeneralRe: The Comma Operator in C++ Pin
Matthew Faithfull14-Feb-13 3:59
memberMatthew Faithfull14-Feb-13 3:59 
Kind of misses the best bits sadly. The comma operator can be used to explicitly control order of operation, i.e. prevent the compiler from reordering things that aren't directly related but have a hidden ordering dependency. Using the comma operator this way is the solution to Alexander Andrescu's pure C++ portable mutex implementation problem. I must write this up with a test case at some point, busy, busy, busy Roll eyes | :rolleyes:
"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.150819.1 | Last Updated 30 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid