You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is_constructible_v<T, const optional<U>&> is false,
is_constructible_v<T, const optional<U>&&> is false,
is_convertible_v<optional<U>&, T> is false,
is_convertible_v<optional<U>&&, T> is false,
is_convertible_v<const optional<U>&, T> is false, and
is_convertible_v<const optional<U>&&, T> is false.
Then we do the same thing for optional(optional&&), only varying the first bullet.
We're also adding more of this in the std::expected paper, so something like an exposition-only variable template that could be used repeatedly would be good.
The text was updated successfully, but these errors were encountered:
In [optional.ctor]
optional(const optional&)
has:is_constructible_v<T, const U&>
istrue
,is_constructible_v<T, optional<U>&>
isfalse
,is_constructible_v<T, optional<U>&&>
isfalse
,is_constructible_v<T, const optional<U>&>
isfalse
,is_constructible_v<T, const optional<U>&&>
isfalse
,is_convertible_v<optional<U>&, T>
isfalse
,is_convertible_v<optional<U>&&, T>
isfalse
,is_convertible_v<const optional<U>&, T>
isfalse
, andis_convertible_v<const optional<U>&&, T>
isfalse
.Then we do the same thing for
optional(optional&&)
, only varying the first bullet.We're also adding more of this in the
std::expected
paper, so something like an exposition-only variable template that could be used repeatedly would be good.The text was updated successfully, but these errors were encountered: