Closed divannyteoretik closed 3 weeks ago
Thanks for reporting this. This was a copy/paste error and should not be marked noexcept. I'll fix this and also remove a number of places where it is inappropriately marked for use in exception contexts. Glaze has been too aggressive with marking things noexcept in the past and we need to allow these exceptions through.
A fix has been merged in #1420
I don't disable exceptions, but I can't catch exceptions of
get_T
methods (get_object
,get_string
, and so on) while I can do that with direct callsget<T>
. It seems like that's becauseget_T
are marked withnoexcept
in thejson_t.hpp
file.Demo is here https://gcc.godbolt.org/z/3K3sczbEY and it can be reproduced on both gcc and clang.
Is glaze supposed to behave in this way? If so, I believe it's better to say that explicitly in docs. If not, maybe it worth removing noexcept from
get_T
methods.