Move IntrusivePtr relational operators to zeek namespace

Otherwise some cases relying on argument-dependent lookup (ADL) fail.
This commit is contained in:
Jon Siwek 2021-04-03 09:46:22 -07:00
parent e6955d55dd
commit cffc8fa13c

View file

@ -198,8 +198,6 @@ IntrusivePtr<T> cast_intrusive(IntrusivePtr<U> p) noexcept
return {AdoptRef{}, static_cast<T*>(p.release())}; return {AdoptRef{}, static_cast<T*>(p.release())};
} }
} // namespace zeek
// -- comparison to nullptr ---------------------------------------------------- // -- comparison to nullptr ----------------------------------------------------
/** /**
@ -292,3 +290,5 @@ auto operator!=(const zeek::IntrusivePtr<T>& x, const zeek::IntrusivePtr<U>& y)
{ {
return x.get() != y.get(); return x.get() != y.get();
} }
} // namespace zeek