⚗️ do not include <ciso646> with C++20 #2089

This commit is contained in:
Niels Lohmann 2020-05-07 10:17:32 +02:00
parent 9adb1c0235
commit 8c2b26de4a
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
2 changed files with 45 additions and 49 deletions

View file

@ -1,12 +1,8 @@
#pragma once
#include <nlohmann/detail/macro_scope.hpp>
// Header <ciso646> is needed for older MSVC versions to allow to use the
// alternative operator representations "and", "or", and "not". As the header
// is removed in C++20, we must only include it for old MSVC versions.
// Header <ciso646> is removed in C++20.
// See <https://github.com/nlohmann/json/issues/2089> for more information.
#if !JSON_HEDLEY_MSVC_VERSION_CHECK(15,5,0)
#if __cplusplus <= 201703L
#include <ciso646> // and, not, or
#endif