Repository navigation
Prepare release 0.5.0 - #31
Merged
Merged
Conversation
The MSVC jobs build, link and pass the tests. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ar6Ahymw9LhLsnM324z5cV Signed-off-by: Yaraslau Tamashevich <yaraslau.tamashevich@gmail.com>
Member names are read from the address of a member of an object that only needs to exist at compile time. That object was a variable declared `extern` and never defined, which compilers reject for types without external linkage, since no other translation unit could define it. Use a union holding the object as a member that is never constructed instead. It is a real definition, so it works for every type, and still does not require the type to be constructible. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ar6Ahymw9LhLsnM324z5cV Signed-off-by: Yaraslau Tamashevich <yaraslau.tamashevich@gmail.com>
MSVC does not accept the address of a member of a union member that was never constructed as a constant expression, so it keeps using the object that is declared but never defined. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ar6Ahymw9LhLsnM324z5cV Signed-off-by: Yaraslau Tamashevich <yaraslau.tamashevich@gmail.com>
Add a usage section to the README, and a description to every public declaration that had none. The descriptions of EnumerateMembers claimed the callable receives a default-constructed value, while it receives a reference to the member. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ar6Ahymw9LhLsnM324z5cV Signed-off-by: Yaraslau Tamashevich <yaraslau.tamashevich@gmail.com>
MSVC rejects the declared-only stand-in object for types without external linkage (C7631), and does not accept the union used by the other compilers either. Member names of types in anonymous namespaces or at function scope therefore remain unavailable with MSVC. Say so in the README and next to the code, and skip the tests for it there. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ar6Ahymw9LhLsnM324z5cV Signed-off-by: Yaraslau Tamashevich <yaraslau.tamashevich@gmail.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ar6Ahymw9LhLsnM324z5cV Signed-off-by: Yaraslau Tamashevich <yaraslau.tamashevich@gmail.com>
Yaraslaut
force-pushed
the
release/0.5.0
branch
from
October 1, 2026 17:42
bf95d11 to
5c75b98
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Collects what was left open before the next release: one feature, documentation, and the version bump.
Changes
externand never defined, which compilers reject for types without external linkage. On GCC and Clang it is now a union holding the object as a member that is never constructed: a real definition, which still does not require the type to be constructible. MSVC accepts neither technique for such types, so it keeps the previous behaviour; the README states the limitation. Addresses Add support for structs in anonymous namespaces and function scope #26 for GCC and Clang.EnumerateMemberswrongly said the callable receives a default-constructed value. Closes document public API in comments #6.Notes for the release
Since 0.4.0, three changes can require adjustments in user code:
FoldMemberspasses the accumulator to the callable as an rvalue. A callable taking it as a non-const lvalue reference no longer compiles.CallOnMembersWithoutNamepasses the plain member type as template argument, not a reference type.Inspectprints enum members by their numeric value.MaxReflectionMemerCountwas renamed toMaxReflectionMemberCountin #28; the old name remains as a deprecated alias.🤖 Generated with Claude Code
https://claude.ai/code/session_01Ar6Ahymw9LhLsnM324z5cV