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

cetl::optional ctor # 8 - should be conditionally explicit #119

Open
serges147 opened this issue Apr 26, 2024 · 0 comments
Open

cetl::optional ctor # 8 - should be conditionally explicit #119

serges147 opened this issue Apr 26, 2024 · 0 comments
Assignees

Comments

@serges147
Copy link
Contributor

serges147 commented Apr 26, 2024

template < class U = T >
constexpr optional( U&& value );

This constructor is explicit if and only if std::is_convertible_v<U&&, T> is false.

@serges147 serges147 changed the title template < class U = T > constexpr optional( U&& value ); ctor # 8 - should be conditionally explicit cetl::optional ctor # 8 - should be conditionally explicit Apr 26, 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