We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Destructors are not called when a variant is assigned to. Likewise, some D features might not work out of the box. I should document them, and why.
The text was updated successfully, but these errors were encountered:
After much thought, destructors should not but called by minivariant. However, an additional utility might be built on top of it to do it, e.g.
auto var = WithDestructor!(Variant!(Args))(StructWithDtors(42));
The point of having WithDestructor wrap a Variant is to be able to compose, should other features be needed.
WithDestructor
Variant
Sorry, something went wrong.
No branches or pull requests
Destructors are not called when a variant is assigned to. Likewise, some D features might not work out of the box. I should document them, and why.
The text was updated successfully, but these errors were encountered: