Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing c-tor for nesting Variants #467

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

sangelovic
Copy link
Collaborator

@sangelovic sangelovic commented Nov 20, 2024

This allows nesting variants, i.e. allows a variant to contain another variant as its value. Until now, there was no such possibility, since the default generated copy constructor would be invoked which would create a copy of source variant instead of embed the source variant as a value in the destination variant. The default generated copy constructor is kept, for it makes sense too, but a new tag-based overload is added for embedding the source variant into the destination variant.

Fixes #468

@sangelovic sangelovic force-pushed the fix/variant-converting-ctor branch from ee90683 to 8522ba1 Compare November 20, 2024 22:34
@sangelovic sangelovic merged commit a1419ee into master Nov 20, 2024
6 checks passed
@sangelovic sangelovic deleted the fix/variant-converting-ctor branch November 20, 2024 22:40
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.

How to set a variant property
1 participant