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

indicator for double storage #37

Closed
ad8e opened this issue Jun 19, 2023 · 1 comment
Closed

indicator for double storage #37

ad8e opened this issue Jun 19, 2023 · 1 comment

Comments

@ad8e
Copy link

ad8e commented Jun 19, 2023

It would be nice to enable something like this:

using myvariant = boost::variant2<int, myclass>;
static_assert(myvariant::double_storage_required() == false, "some member is forcing double storage");
@pdimov
Copy link
Member

pdimov commented Jun 29, 2023

I've added this under the name of uses_double_storage() and it will be in the next release.

@pdimov pdimov closed this as completed Jun 29, 2023
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

No branches or pull requests

2 participants