diff options
author | B Stack <bgstack15@gmail.com> | 2019-11-20 08:36:44 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2019-11-20 08:36:44 -0500 |
commit | ed50041589974d31296cb30dc1897f7fba6336c2 (patch) | |
tree | e2c5c7b1f98e64011b1ee8ca4e9bb9157510dfe7 /zen/legacy_compiler.h | |
parent | Merge branch '10.17' into 'master' (diff) | |
download | FreeFileSync-ed50041589974d31296cb30dc1897f7fba6336c2.tar.gz FreeFileSync-ed50041589974d31296cb30dc1897f7fba6336c2.tar.bz2 FreeFileSync-ed50041589974d31296cb30dc1897f7fba6336c2.zip |
add upstream 10.18
Diffstat (limited to 'zen/legacy_compiler.h')
-rw-r--r-- | zen/legacy_compiler.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/zen/legacy_compiler.h b/zen/legacy_compiler.h index d0b4d3fe..6ce1d765 100644 --- a/zen/legacy_compiler.h +++ b/zen/legacy_compiler.h @@ -8,19 +8,25 @@ #define LEGACY_COMPILER_H_839567308565656789 +#if !__cpp_lib_erase_if +#include <vector> +#include <set> +#include <map> +#endif + +//https://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommendations +//https://en.cppreference.com/w/User:D41D8CD98F/feature_testing_macros +//https://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html namespace std { -//https://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html -//https://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommendations - +//--------------------------------------------------------------------------------- #if __cpp_lib_span - #error get rid of workarounds + #error get rid of workaround: #endif -//requires C++20! until then, this should suffice... template <class T> class span { @@ -51,8 +57,12 @@ private: const size_t size_; T* const data_; }; + +//--------------------------------------------------------------------------------- + } + namespace zen { double from_chars(const char* first, const char* last); |