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

Make sure make_optional<T>(Args...) doesn't become accidentally well formed for reference types #56

Open
steve-downey opened this issue Sep 3, 2024 · 0 comments
Assignees

Comments

@steve-downey
Copy link
Member

I suspect that in most cases there wouldn't be a viable constructor as optional<T&> as proposed doesn't try to construct a T, but adding a Mandates would be clearer than a string of errors.

https://godbolt.org/z/EPY8EW14W

@steve-downey steve-downey self-assigned this Sep 4, 2024
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