OpenCyphal / CETL

Cyphal Embedded Template Library
MIT License
11 stars 3 forks source link

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

Open serges147 opened 4 months ago

serges147 commented 4 months ago
template < class U = T >
constexpr optional( U&& value );

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