Replies: 7 comments 21 replies
-
Thanks for the question! Via template arguments, it is possible to set the types of the integers to 128 bit types: using json128 = nlohmann::basic_json<std::map, std::vector, std::string, bool, __int128_t, __uint128_t>; However, some parts of the library make silent assumptions on the integer size. For instance, the lexer is calling This indicates an overflow according to the documentation:
I am not sure whether this is the only spot with such an assumption. If it is, then 128-bit integer support would "just" mean providing some function that can parse a 128-bit integer from a string. |
Beta Was this translation helpful? Give feedback.
-
Wonderful !!! Hope to use this feature in next release. By the way, how about __float128 support? |
Beta Was this translation helpful? Give feedback.
-
Will you create a commit to support int128_t and uint128_t? If yes, how about time? |
Beta Was this translation helpful? Give feedback.
-
Your professional and in time support is worthy of praise . Do you have alipay or wechat account? |
Beta Was this translation helpful? Give feedback.
-
I mailed 12EUR to your paypal account just now through a friend, since I have no paypal account and no credit card. |
Beta Was this translation helpful? Give feedback.
-
Is there still work for the 128 bit integer? Really we need a uint64, but a int128 would cover it since there is some work already. |
Beta Was this translation helpful? Give feedback.
-
I figured out where our anomaly lies. The JSON Schema Validator we use, and a very good one at that, uses your |
Beta Was this translation helpful? Give feedback.
-
When will this project support int128_t and uint128_t ?
Beta Was this translation helpful? Give feedback.
All reactions