summaryrefslogtreecommitdiff
path: root/zen/legacy_compiler.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <shieldwed@outlook.com>2019-12-14 15:52:53 +0000
committerDaniel Wilhelm <shieldwed@outlook.com>2019-12-14 15:52:53 +0000
commitcc75e50ca861529d50601d247fd66f806fcb23a8 (patch)
treee2c5c7b1f98e64011b1ee8ca4e9bb9157510dfe7 /zen/legacy_compiler.h
parentMerge branch '10.17' into 'master' (diff)
parentadd upstream 10.18 (diff)
downloadFreeFileSync-10.18.tar.gz
FreeFileSync-10.18.tar.bz2
FreeFileSync-10.18.zip
Merge branch '10.18' into 'master'10.18
add upstream 10.18 See merge request opensource-tracking/FreeFileSync!15
Diffstat (limited to 'zen/legacy_compiler.h')
-rw-r--r--zen/legacy_compiler.h20
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);
bgstack15