-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compile error with _HAS_STATIC_RTTI=0 (#4046)
- Loading branch information
Showing
5 changed files
with
57 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# JSON_HAS_STATIC_RTTI | ||
|
||
```cpp | ||
#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 `#!cpp _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: | ||
```cpp | ||
#define JSON_HAS_STATIC_RTTI 1 | ||
#include <nlohmann/json.hpp> | ||
... | ||
``` | ||
## Version history | ||
- Added in version ?. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters