Skip to content

Build a variant's alternative through access on load - #378

Merged
gennaroprota merged 1 commit into
developfrom
fix/variant-builds-alternatives-through-access
Aug 14, 2026
Merged

Build a variant's alternative through access on load#378
gennaroprota merged 1 commit into
developfrom
fix/variant-builds-alternatives-through-access

Conversation

@gennaroprota

Copy link
Copy Markdown
Collaborator

Loading declared the alternative (head_type value;), so a type whose default constructor is private, or absent, could not be an alternative at all, even with boost::serialization::access befriended. Build it the way a container element is built instead.

Fixes #338.

Loading declared the alternative (`head_type value;`), so a type whose
default constructor is private, or absent, could not be an alternative
at all, even with `boost::serialization::access` befriended. Build it
the way a container element is built instead.

Fixes #338.
@gennaroprota
gennaroprota added this pull request to the merge queue Aug 14, 2026
Merged via the queue into develop with commit 7e41cb4 Aug 14, 2026
43 checks passed
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.

std_variant serialization does not instantiate variant alternatives via boost::serialization::access

1 participant