Stephen Berry

Results 391 comments of Stephen Berry

This brings up a good point, but is a bit more nuanced. If the program is compiled with no exceptions then indeed those allocations won't throw, but rather abort (i.e....

I've decided that for the sake of simplicity I should simply remove `noexcept` from locations that could throw. It just makes development simpler and compilers tend to be smart when...

It seems like you are not wanting the `custom_struct` to be the key, but rather for the maps to be merged. You can get close to what you want with...

Boy, this is tricky. I got a firm grasp on the problem now. You were write to put out the `quoted_t` logic, which is being applied to the custom serialization....

I think an elegant approach might be to define a C++ type with known format association to indicate how this custom type will serialize data. Maybe it should be named...

I realize this can exist inside of the `glz::meta`, because `glz::meta` won't collide with a custom `to/from` if it only specifies a type behavior. Hence I'm think of using the...

I can see merits of an enum class. I'm thinking about how this applies to other specifications beyond JSON. But, I think these could be special enumerations for different use...

Aspects of this issue have been resolved and pair writing has been improved, but the mimicking proposal outlined here for custom types has not yet been implemented.

@vug, thanks for sharing your workaround! This is a smart solution until we get type mimicking implemented. I do think it is best to work with C++ concepts to achieve...

@kaladron, this approach works. But, what you're wanting is already supported by wrapping your char array in a std::string_view and then using the option: `escape_control_characters` ```c++ char raw[4] = {0,...