mirror of
https://github.com/nlohmann/json.git
synced 2026-07-09 12:05:10 +00:00
deploy: 7c9208bfb3
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1,30 @@
|
||||
# JSON_HAS_STATIC_RTTI
|
||||
|
||||
```
|
||||
#define JSON_HAS_STATIC_RTTI /* value */
|
||||
```
|
||||
|
||||
This macro indicates whether the standard library has any support for RTTI (run time type information). Possible values are `1` when supported or `0` when unsupported.
|
||||
|
||||
## Default definition
|
||||
|
||||
The default value is detected based on the preprocessor macro `_HAS_STATIC_RTTI`.
|
||||
|
||||
When the macro is not defined, the library will define it to its default value.
|
||||
|
||||
## Examples
|
||||
|
||||
Example
|
||||
|
||||
The code below forces the library to enable support for libraries with RTTI dependence:
|
||||
|
||||
```
|
||||
#define JSON_HAS_STATIC_RTTI 1
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
...
|
||||
```
|
||||
|
||||
## Version history
|
||||
|
||||
- Added in version 3.11.3.
|
||||
Reference in New Issue
Block a user