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

Allow implicit construction from empty_t #14

Open
usefulcat opened this issue Aug 8, 2018 · 0 comments
Open

Allow implicit construction from empty_t #14

usefulcat opened this issue Aug 8, 2018 · 0 comments

Comments

@usefulcat
Copy link

If flags(empty_t) were not declared explicit, I could do the following:

void f(int x, flags::flags f = flags::empty);

Instead of:

void f(int x, flags::flags f = flags::flags(flags::empty));

..which of course is repetitive and more verbose.

Not a huge deal but maybe worth changing unless there is a more important reason for it to be explicit.

Thanks for the library by the way, I find it quite useful!

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

1 participant