being more precise

This commit is contained in:
Daniel Lemire
2026-04-12 17:06:27 -04:00
parent 486b2a3828
commit 8ea4c1c2e6
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -770,6 +770,9 @@ void basics_treewalk_1() {
}
```
Notice that we do not include `dom::element_type::BIGINT` in this example
as `dom::element_type::BIGINT` type is only generated if the parser was
set to support big integers (`parser.number_as_string(true)`).
Reusing the parser for maximum efficiency
+2
View File
@@ -22,6 +22,8 @@ enum class element_type {
STRING = '"', ///< std::string_view
BOOL = 't', ///< bool
NULL_VALUE = 'n', ///< null
/// The BIGINT type is for integers that do not fit in 64 bits. It is only present
// if you set parser.number_as_string(true).
BIGINT = 'Z' ///< std::string_view: big integer stored as raw digit string
};