From 18a7668efc4cbc4f7f310a23d73b3d49a9f0824d Mon Sep 17 00:00:00 2001 From: Dmitry Atamanov Date: Thu, 18 Jun 2026 14:59:48 +0500 Subject: [PATCH 1/2] Fix typo --- include/reflection-cpp/reflection.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/reflection-cpp/reflection.hpp b/include/reflection-cpp/reflection.hpp index 0b7c857..9c2850f 100644 --- a/include/reflection-cpp/reflection.hpp +++ b/include/reflection-cpp/reflection.hpp @@ -139,7 +139,7 @@ template requires(std::is_aggregate_v>) constexpr inline auto CountMembers = detail::CountMembers>; -constexpr size_t MaxReflectionMemerCount = 150; +constexpr size_t MaxReflectionMemberCount = 150; /** @@ -178,7 +178,7 @@ elisp functions to fill the ToTuple function **/ template > - requires(N <= MaxReflectionMemerCount) + requires(N <= MaxReflectionMemberCount) constexpr decltype(auto) ToTuple(T&& t) noexcept { if constexpr (N == 0) From 32745425db047eca5b0cc69ed20ef25c3ac83fc9 Mon Sep 17 00:00:00 2001 From: Yaraslau Tamashevich Date: Thu, 1 Oct 2026 19:30:43 +0200 Subject: [PATCH 2/2] Keep MaxReflectionMemerCount as a deprecated alias The misspelled name was public, so code using it keeps compiling, with a deprecation warning pointing at MaxReflectionMemberCount. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01Ar6Ahymw9LhLsnM324z5cV Signed-off-by: Yaraslau Tamashevich --- include/reflection-cpp/reflection.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/reflection-cpp/reflection.hpp b/include/reflection-cpp/reflection.hpp index 3da5e66..c34e1a5 100644 --- a/include/reflection-cpp/reflection.hpp +++ b/include/reflection-cpp/reflection.hpp @@ -133,8 +133,13 @@ namespace detail } } // namespace detail +/// The maximum number of members an aggregate may have to be reflected. constexpr size_t MaxReflectionMemberCount = 150; +/// The former, misspelled name of MaxReflectionMemberCount. +[[deprecated("Use MaxReflectionMemberCount instead")]] constexpr size_t MaxReflectionMemerCount = + MaxReflectionMemberCount; + namespace detail { #if REFLECTION_HAS_STRUCTURED_BINDING_PACKS