Skip to content

Comments

static constexpr name reflection#2329

Open
stephenberry wants to merge 8 commits intomainfrom
static-constexpr-name-reflect
Open

static constexpr name reflection#2329
stephenberry wants to merge 8 commits intomainfrom
static-constexpr-name-reflect

Conversation

@stephenberry
Copy link
Owner

@stephenberry stephenberry commented Feb 20, 2026

Summary

Fixes issue #2327: implicit key inference now works for static class members (for example static constexpr std::string_view) when used in glz::object(&T::member, ...).

Changes from main

  • include/glaze/reflection/get_name.hpp
    • Added name extraction support for object pointers in get_name, so static members can be reflected without requiring explicit key strings.
    • Refactored shared pretty-function parsing into small helper functions to keep member-pointer and pointer paths consistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uable to serialize a static constexpr std::string_view member to JSON

1 participant