jsoncpp icon indicating copy to clipboard operation
jsoncpp copied to clipboard

should Value::isConvertibleTo consider about int64?

Open Holmojan opened this issue 2 years ago • 3 comments

it return false because the value > 2^32-1

Holmojan avatar Apr 09 '23 09:04 Holmojan

can you be more specific? What do you expect to happen? Do you have demo code?

BillyDonahue avatar Apr 12 '23 15:04 BillyDonahue

can you be more specific? What do you expect to happen? Do you have demo code?

Json::Value root;
root = 0x1FFFFFFFF;
bool b = root.isConvertibleTo(Json::ValueType::intValue);

b equal false

Holmojan avatar May 05 '23 03:05 Holmojan

can you be more specific? What do you expect to happen? Do you have demo code?

I want to determine if Json::Value can be converted to some type(such as int64) isConvertibleTo is the best way but it failed at int64

Holmojan avatar May 05 '23 04:05 Holmojan