Click here to Skip to main content
15,867,568 members

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
sitebuilderTerrence Dorsey13-Feb-13 11:27 
GeneralRe: The Comma Operator in C++ Pin
PIEBALDconsult13-Feb-13 14:59
mvePIEBALDconsult13-Feb-13 14:59 
GeneralRe: The Comma Operator in C++ Pin
Stephen Hewitt13-Feb-13 21:00
Stephen Hewitt13-Feb-13 21:00 
GeneralRe: The Comma Operator in C++ Pin
peterchen13-Feb-13 21:51
peterchen13-Feb-13 21:51 
GeneralRe: The Comma Operator in C++ Pin
Matthew Faithfull14-Feb-13 3:59
Matthew 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.