You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rfl::TaggedUnion: fix move-only / rfl::Box<T> rejection in ParserTaggedUnion::wrap_if_necessary #114
rfl::parsing::ParserTaggedUnion::wrap_if_necessary (include/rfl/parsing/ParserTaggedUnion.hpp:296-299) returns _val by value (return _val;) when the alternative type already contains the inline _discriminator field. Even though write_wrapped (lines 280-285) avoids calling wrap_if_necessary on write, wrap_if_necessary is still instantiated in decltype(wrap_if_necessary<...>(std::declval<...>())) (e.g., lines 135 and 218), causing compilation failure for any move-only alternative — including rfl::Box<T> and structs containing rfl::Box<T> or std::unique_ptr<T>.
Root-cause site on showcase/all-lanes: include/rfl/parsing/ParserTaggedUnion.hpp:296-299 (and decltype call sites at lines 135, 218).
Acceptance Criteria
Fix ParserTaggedUnion::wrap_if_necessary (e.g., return const T& via decltype(auto) or avoid copying _val in the inline-discriminator branch, and ensure decltype / type-query callers strip references cleanly) so move-only alternatives (rfl::Box<T>, structs holding rfl::Box<T> / std::unique_ptr<T>) with inline discriminator fields compile and serialize/deserialize cleanly.
Add regression tests covering rfl::TaggedUnion with move-only alternatives (both rfl::Box<T> fields and inline discriminator structs) across read, write, and rfl::json::to_schema.
Resolved on showcase/all-lanes via Batch 1 merge 4861aafd (commits d4700190, d3673b24). Verified with 962/962 CTest passing under AppleClang 17 -Wall -Werror + REFLECTCPP_STRICT_WARNINGS=ON (non-SYSTEM-I for internal tests, -isystem for downstream consumers) and dual Judge approval (Gemini 4 Neon High: APPROVE WITH NITS, all addressed; Claude Opus 5.5 High re-check: APPROVE).
Activity
Batch 1 bugfixes: #105-#114 (nlohmann/xml ErrorKind, int64 overflow, …
Merge Batch 1 bugfixes (#105-#114) into showcase/all-lanes
clockblocker commentedon Nov 27, 2026
Resolved on
showcase/all-lanesvia Batch 1 merge4861aafd(commitsd4700190,d3673b24). Verified with 962/962 CTest passing under AppleClang 17-Wall -Werror+REFLECTCPP_STRICT_WARNINGS=ON(non-SYSTEM-Ifor internal tests,-isystemfor downstream consumers) and dual Judge approval (Gemini 4 Neon High:APPROVE WITH NITS, all addressed; Claude Opus 5.5 High re-check:APPROVE).