Commit dd662130 authored by Kenton Varda's avatar Kenton Varda

Make KJ_ASSERT_NONNULL support move semantics.

parent 12866d01
......@@ -798,8 +798,10 @@ public:
}
}
inline T& operator*() { return value; }
inline const T& operator*() const { return value; }
inline T& operator*() & { return value; }
inline const T& operator*() const & { return value; }
inline T&& operator*() && { return kj::mv(value); }
inline const T&& operator*() const && { return kj::mv(value); }
inline T* operator->() { return &value; }
inline const T* operator->() const { return &value; }
inline operator T*() { return isSet ? &value : 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