Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual C++ 2010 atomic types support?

Does VC++ 2010 have support for C++11's portable atomic type template?

like image 378
Electro Avatar asked May 29 '10 20:05

Electro


2 Answers

No; none of the C++11 atomic operations or thread support features are supported by Visual C++ 2010.

Both of these sets of features are supported by Visual C++ 2012.

like image 178
James McNellis Avatar answered Sep 28 '22 09:09

James McNellis


You can use tbb::atomic. It is not the same as C++0x atomics, and is not really meant to be a replacement or temporary substitute for them, but can be used to accomplish the same programming tasks.

like image 22
SoapBox Avatar answered Sep 28 '22 10:09

SoapBox