📝 note platform-dependent output on some examples
This commit is contained in:
parent
50b891e009
commit
e41e278ab5
@ -28,8 +28,9 @@ create_output: $(EXAMPLES:.cpp=.output)
|
|||||||
# check output of all stand-alone example files
|
# check output of all stand-alone example files
|
||||||
check_output: $(EXAMPLES:.cpp=.test)
|
check_output: $(EXAMPLES:.cpp=.test)
|
||||||
|
|
||||||
# check output of all stand-alone example files (exclude meta which is dependent on the current compiler)
|
# check output of all stand-alone example files (exclude files with platform-dependent output.)
|
||||||
check_output_portable: $(filter-out examples/meta.test examples/max_size.test examples/std_hash.test,$(EXAMPLES:.cpp=.test))
|
# This target is used in the CI (ci_test_documentation).
|
||||||
|
check_output_portable: $(filter-out examples/meta.test examples/max_size.test examples/std_hash.test exaples/basic_json__CompatibleType.test,$(EXAMPLES:.cpp=.test))
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr $(EXAMPLES:.cpp=)
|
rm -fr $(EXAMPLES:.cpp=)
|
||||||
|
|||||||
@ -317,6 +317,8 @@ basic_json(basic_json&& other) noexcept;
|
|||||||
--8<-- "examples/basic_json__CompatibleType.output"
|
--8<-- "examples/basic_json__CompatibleType.output"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note the output is platform-dependent.
|
||||||
|
|
||||||
??? example "Example: (5) create a container (array or object) from an initializer list"
|
??? example "Example: (5) create a container (array or object) from an initializer list"
|
||||||
|
|
||||||
The example below shows how JSON values are created from initializer lists.
|
The example below shows how JSON values are created from initializer lists.
|
||||||
|
|||||||
@ -40,7 +40,7 @@ string elements the JSON value can store which is `1`.
|
|||||||
|
|
||||||
??? example
|
??? example
|
||||||
|
|
||||||
The following code calls `max_size()` on the different value types. Note the output is implementation specific.
|
The following code calls `max_size()` on the different value types.
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
--8<-- "examples/max_size.cpp"
|
--8<-- "examples/max_size.cpp"
|
||||||
@ -52,6 +52,8 @@ string elements the JSON value can store which is `1`.
|
|||||||
--8<-- "examples/max_size.output"
|
--8<-- "examples/max_size.output"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note the output is platform-dependent.
|
||||||
|
|
||||||
## Version history
|
## Version history
|
||||||
|
|
||||||
- Added in version 1.0.0.
|
- Added in version 1.0.0.
|
||||||
|
|||||||
@ -32,8 +32,7 @@ Constant.
|
|||||||
|
|
||||||
??? example
|
??? example
|
||||||
|
|
||||||
The following code shows an example output of the `meta()`
|
The following code shows an example output of the `meta()` function.
|
||||||
function.
|
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
--8<-- "examples/meta.cpp"
|
--8<-- "examples/meta.cpp"
|
||||||
@ -45,6 +44,8 @@ Constant.
|
|||||||
--8<-- "examples/meta.output"
|
--8<-- "examples/meta.output"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note the output is platform-dependent.
|
||||||
|
|
||||||
## See also
|
## See also
|
||||||
|
|
||||||
- [**NLOHMANN_JSON_VERSION_MAJOR**/**NLOHMANN_JSON_VERSION_MINOR**/**NLOHMANN_JSON_VERSION_PATCH**](../macros/nlohmann_json_version_major.md) - library version information
|
- [**NLOHMANN_JSON_VERSION_MAJOR**/**NLOHMANN_JSON_VERSION_MINOR**/**NLOHMANN_JSON_VERSION_PATCH**](../macros/nlohmann_json_version_major.md) - library version information
|
||||||
|
|||||||
@ -26,6 +26,8 @@ type of the JSON value is taken into account to have different hash values for `
|
|||||||
--8<-- "examples/std_hash.output"
|
--8<-- "examples/std_hash.output"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note the output is platform-dependent.
|
||||||
|
|
||||||
## Version history
|
## Version history
|
||||||
|
|
||||||
- Added in version 1.0.0.
|
- Added in version 1.0.0.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user