Stephen Berry

Results 391 comments of Stephen Berry

I'm about to merge in initial non-null terminated buffer support for JSON reading (#1262). This uses a general approach rather than contextual sentinels, because I decided that it was best...

This issue is due to the fact that a `std::variant` isn't necessarily an object. In this example the variant types all contain object types, so they should be considered objects....

I don't think nested variant support is a good idea. It is better to use `glz::generic` for these more dynamic cases. A tree of compile time map building feels dangerously...

Interesting, I'll have to do some experimentation to try to replicate an issue. `nameof` does use argument dependent lookup (ADL), so include order can matter. Will look into when I...

Can you try manually including `glaze/reflection/enum_macro.hpp` first in your Glaze includes? I have not been able to replicate this issue.

@Bolderaysky, I realized that the constexpr arrays these macros were generating were not declared `inline`. This may be your issue and may now be solved as of #1252 in [v3.2.2](https://github.com/stephenberry/glaze/releases/tag/v3.2.2)

I'm going to close this for now, but definitely open it back up if you run into the issue again. Thanks!

What compiler are you using? And, if you remove the anonymous namespace (`namespace {`) does the issue go away?

Wow, thanks for diving into this issue! This is very interesting. The template instantiation should be based on the reference of the `std::string_view`, which should have different addresses. This seems...