♻️ do not include experimental headers

This commit is contained in:
Niels Lohmann 2021-01-03 20:10:43 +01:00
parent ebb63bd1fa
commit f1913fe7a9
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
2 changed files with 2 additions and 10 deletions

View File

@ -32,11 +32,7 @@
#endif
#ifdef JSON_HAS_CPP_17
#if __has_include(<optional>)
#include <optional>
#elif __has_include(<experimental/optional>)
#include <experimental/optional>
#endif
#include <optional>
#endif
// disable float-equal warnings on GCC/clang

View File

@ -2109,11 +2109,7 @@ JSON_HEDLEY_DIAGNOSTIC_POP
#endif
#ifdef JSON_HAS_CPP_17
#if __has_include(<optional>)
#include <optional>
#elif __has_include(<experimental/optional>)
#include <experimental/optional>
#endif
#include <optional>
#endif
// disable float-equal warnings on GCC/clang