⚗️ do not include <ciso646> with C++20 #2089
This commit is contained in:
parent
9adb1c0235
commit
8c2b26de4a
2 changed files with 45 additions and 49 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue