when using json::value(float) , float is being casted to double and causing the value to change. is it possible to overload the constructor and = operator and other relevant operators for float ?
Would you mean providing a specific test case that show this? e.g. what value of float are you using?
There is some discussion of our poor handling for numbers at: https://github.com/open-source-parsers/jsoncpp/issues
Not much we can do about it though.
Log in to post a comment.
Would you mean providing a specific test case that show this? e.g. what value of float are you using?
There is some discussion of our poor handling for numbers at: https://github.com/open-source-parsers/jsoncpp/issues
Not much we can do about it though.