Click here to Skip to main content
12,996,261 members (65,097 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    Praise Praise    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
Web01 | 2.8.170609.2 | Last Updated 22 Jun 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid