Skip to content

Commit

Permalink
Add cast operator for long long int to avoid abiguity on systems wher…
Browse files Browse the repository at this point in the history
…e long long is not the same as int64_t
  • Loading branch information
langmm committed Dec 16, 2024
1 parent 71d627e commit fc41504
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/rapidjson/document.h
Original file line number Diff line number Diff line change
Expand Up @@ -2372,6 +2372,12 @@ class GenericValue {
ADD_CAST_OP(uint64_t)
ADD_CAST_OP(double)
ADD_CAST_OP(float)
#if LLONG_MAX != INT64_MAX
ADD_CAST_OP(long long int);
#endif
#if ULLONG_MAX != UINT64_MAX
ADD_CAST_OP(unsigned long long int);
#endif
// ADD_CAST_OP_BASE(Ch*, const Ch*)
#if RAPIDJSON_HAS_STDSTRING
ADD_CAST_OP(std::basic_string<Ch>)
Expand Down

0 comments on commit fc41504

Please sign in to comment.