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.
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.
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.
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.
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.
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
Have you looked at this?
C++0x/C++11 Support in GCC
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With