Skip to content

Backporting STL to previous C++ versions, as close to the standards as possible.

Notifications You must be signed in to change notification settings

CyanoHao/STL-backports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

STL Backports

Backporting STL to previous C++ versions, as close to the standards as possible.

Features

STL-17

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.

Compatibility

STL-17

STL-17 / C++14

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.

STL-17 / C++11

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).

About

Backporting STL to previous C++ versions, as close to the standards as possible.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published