Closed panic-sell closed 7 months ago
Thanks for pointing this out. The issue is that it is throwing std::out_of_range there and the catch is looking for a json_exception with a NumberOutOfRange reason. I'll have to move the narrow cast function from the other library into JSON Link.
In the mean time before that patch gets out, catching std::exception const & or std::out_of_range const & should work around the issue.
Also, the narrow_cast check was noexcept, oops and thanks again
The fix is done, I should have it out in the next couple days in Release branch
The temporary fix, it will throw a different exception type is in the latest daw-header-libraries that daw-json-link vcpkg pulls in. In the next daw-json-link release it will throw a json_exception https://github.com/microsoft/vcpkg/issues/35998#event-11384532666
I'm on MSVC 19.38, using daw_json_link 3.23.1 from vcpkg.
Here's a small program illustrating the behavior: