Skip to content

Commit

Permalink
Drop <experimental/optional>
Browse files Browse the repository at this point in the history
  • Loading branch information
karzhenkov committed Jan 2, 2021
1 parent eb348f0 commit 381bbe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions include/nlohmann/detail/macro_scope.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 1 addition & 5 deletions single_include/nlohmann/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 381bbe3

Please sign in to comment.