mirror of
https://github.com/nlohmann/json.git
synced 2026-10-21 05:28:12 +00:00
2 files changed
+22
-20
No files matched your search
@@ -19,18 +19,19 @@ The default value is detected based on the preprocessor macros `#!cpp __cpp_lib_
|
|||||||
`#!cpp __cpp_lib_experimental_filesystem`, `#!cpp __has_include(<filesystem>)`, or
|
`#!cpp __cpp_lib_experimental_filesystem`, `#!cpp __has_include(<filesystem>)`, or
|
||||||
`#!cpp __has_include(<experimental/filesystem>)`.
|
`#!cpp __has_include(<experimental/filesystem>)`.
|
||||||
|
|
||||||
## Known compiler/stdlib exclusions
|
!!! info "Known compiler/stdlib exclusions"
|
||||||
|
|
||||||
Even when the feature-test macro indicates filesystem support is available, the library disables it on the following broken toolchains:
|
Even when the feature-test macro indicates filesystem support is available, the library disables it on the following broken toolchains:
|
||||||
|
|
||||||
- **MinGW + GCC 8** — disabled entirely (broken `std::filesystem` implementation; [MinGW-w64 bug 737](https://sourceforge.net/p/mingw-w64/bugs/737/))
|
- **MinGW + GCC 8** — disabled entirely (broken `std::filesystem` implementation; [MinGW-w64 bug 737](https://sourceforge.net/p/mingw-w64/bugs/737/))
|
||||||
- **GCC (non-Clang) < 8** — disabled (no filesystem support)
|
- **GCC (non-Clang) < 8** — disabled (no filesystem support)
|
||||||
- **Clang < 7** — disabled (no filesystem support)
|
- **Clang < 7** — disabled (no filesystem support)
|
||||||
- **MSVC < 19.14** — disabled (no filesystem support)
|
- **MSVC < 19.14** — disabled (no filesystem support)
|
||||||
- **iOS < 13** — disabled (no filesystem support)
|
- **iOS < 13** — disabled (no filesystem support)
|
||||||
- **macOS < Catalina (10.15)** — disabled (no filesystem support)
|
- **macOS < Catalina (10.15)** — disabled (no filesystem support)
|
||||||
|
|
||||||
If `JSON_HAS_FILESYSTEM` or `JSON_HAS_EXPERIMENTAL_FILESYSTEM` is `0` despite `__cpp_lib_filesystem` being defined, one of the exclusions above likely applies to your toolchain.
|
If `JSON_HAS_FILESYSTEM` or `JSON_HAS_EXPERIMENTAL_FILESYSTEM` is `0` despite `__cpp_lib_filesystem` being defined, one
|
||||||
|
of the exclusions above likely applies to your toolchain.
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
|
|||||||
@@ -13,16 +13,17 @@ The default value is detected based on the preprocessor macro `#!cpp __cpp_lib_r
|
|||||||
|
|
||||||
When the macro is not defined, the library will define it to its default value.
|
When the macro is not defined, the library will define it to its default value.
|
||||||
|
|
||||||
## Known compiler/stdlib exclusions
|
!!! info "Known compiler/stdlib exclusions"
|
||||||
|
|
||||||
Even when the feature-test macro `__cpp_lib_ranges` indicates ranges support is available, the library disables it on the following incomplete or broken toolchains:
|
Even when the feature-test macro `__cpp_lib_ranges` indicates ranges support is available, the library disables it on
|
||||||
|
the following incomplete or broken toolchains:
|
||||||
- **GCC 11.1.0** — disabled (the shipped `<ranges>` header has a syntax error; [issue #4440](https://github.com/nlohmann/json/issues/4440))
|
|
||||||
- **libstdc++ < 11** — disabled (incomplete C++20 ranges support; [issue #4440](https://github.com/nlohmann/json/issues/4440))
|
- **GCC 11.1.0** — disabled (the shipped `<ranges>` header has a syntax error; [issue #4440](https://github.com/nlohmann/json/issues/4440))
|
||||||
- **Clang < 16 with libstdc++** — disabled (incomplete ranges support; [issue #4440](https://github.com/nlohmann/json/issues/4440))
|
- **libstdc++ < 11** — disabled (incomplete C++20 ranges support; [issue #4440](https://github.com/nlohmann/json/issues/4440))
|
||||||
- **libc++ < 160000** — disabled (incomplete C++20 ranges support; [issue #4440](https://github.com/nlohmann/json/issues/4440))
|
- **Clang < 16 with libstdc++** — disabled (incomplete ranges support; [issue #4440](https://github.com/nlohmann/json/issues/4440))
|
||||||
|
- **libc++ < 160000** — disabled (incomplete C++20 ranges support; [issue #4440](https://github.com/nlohmann/json/issues/4440))
|
||||||
If `JSON_HAS_RANGES` is `0` despite `__cpp_lib_ranges` being defined, one of the exclusions above likely applies to your toolchain.
|
|
||||||
|
If `JSON_HAS_RANGES` is `0` despite `__cpp_lib_ranges` being defined, one of the exclusions above likely applies to your toolchain.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user