Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

c++ compiler that supports all c++11 concurrency features? [duplicate]

I try to learn writing parallel codes with thread library of c++11 so first of all I need a compiler that support this library my question is that what compiler can support all concurrency features of c++11?

Caution:

this question is about concurrency features of c++11 not for a compiler that best supports C++11.

like image 374
peaceman Avatar asked Apr 02 '12 20:04

peaceman


People also ask

How do I know if my GCC supports C ++ 17?

C++17 Support in GCC C++17 features are available since GCC 5. This mode is the default in GCC 11; it can be explicitly selected with the -std=c++17 command-line flag, or -std=gnu++17 to enable GNU extensions as well.

Is concurrency is a feature of C++?

C++11 was the first C++ standard to introduce concurrency, including threads, the C++ memory model, conditional variables, mutex, and more. The C++11 standard changes drastically with C++17. The addition of parallel algorithms in the Standard Template Library (STL) greatly improved concurrent code.

What is G ++ compiler?

GNU C++ Compiler ( g++ ) is a compiler in Linux which is used to compile C++ programs. It compiles both files with extension . c and . cpp as C++ files. The following is the compiler command to compile C++ program.

Is C ++ 20 supported?

Full supportVisual Studio 2019 supports all C++20 features through its /std:c++latest option, as of version 16.10. 0. An option /std:c++20 to enable C++20 mode is added in version 16.11. 0.


2 Answers

Your best bet is too take a look at the support matrix from the Apache wiki as mentioned on C++11 Compiler: Closest to the standard and how close?. From there you will be able to see what compiler bet suits your needs.

Visual Studio

As mentioned from C++11 Features in Visual C++ 11 "In VC11, we intend to completely support the C++11 Standard Library, modulo not-yet-implemented compiler features."

GCC

C++0x/C++11 Support in GCC

Clang

C++98 and C++11 Support in Clang

like image 69
josephthomas Avatar answered Oct 12 '22 13:10

josephthomas


Have you looked at this?
C++0x/C++11 Support in GCC

like image 33
Jay Avatar answered Oct 12 '22 11:10

Jay