Backporting STL to previous C++ versions, as close to the standards as possible.
Defined in stl-back/stl17/*.hpp
, with namespace stl_backports::stl17
.
Feature | C++14 | C++11 | C++03/98 | Details |
---|---|---|---|---|
class optional<T> |
Almost full support | Not implemented | Not implemented | operator-> is non-constexpr in C++14. |
class any |
Almost full support | Almost full support | Not implemented | No small-object optimization. |
Feature | GCC 6+ | GCC 5* | Clang 3.5+ | VC2015 (C1xx/C2) |
---|---|---|---|---|
class optional<T> |
Passed | Minor issues in constexpr (GCC's bug) | Passed | N/A |
class any |
Passed | Passed | Passed | N/A |
- * First release with full C++14 support.
- Clang 3.4 is the first release that supports C++14, however, it doesn't parse
cstdio
(libstdc++ 4.8) correctly. - Visual C++ does not support C++14 yet.
Feature | GCC 5+ | GCC 4.9 | GCC 4.8* | Clang 3.3* | VC2015** (C1xx/C2) | VS2013 |
---|---|---|---|---|---|---|
class any |
Passed | Minor issues in testsuite (libstdc++ does not fully support C++11) | Minor issues in testsuite (libstdc++ does not fully support C++11) | Not tested | N/A | N/A |
- * First release with full C++11 support.
- ** Almost full C++11 support (except for expression SFINAE and C99 preprocesser).