Commit 617481a0 authored by Kenton Varda's avatar Kenton Varda Committed by Kenton Varda

Implicitly upcast when initializing Maybe<Own<T>> from Own<U>.

parent e6e29122
......@@ -239,6 +239,8 @@ public:
template <typename U>
inline Maybe(Maybe<Own<U>>&& other): ptr(mv(other.ptr)) {}
template <typename U>
inline Maybe(Own<U>&& other): ptr(mv(other)) {}
inline Maybe(decltype(nullptr)) noexcept: ptr(nullptr) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment