mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Move IntrusivePtr relational operators to zeek namespace
Otherwise some cases relying on argument-dependent lookup (ADL) fail.
This commit is contained in:
parent
e6955d55dd
commit
cffc8fa13c
1 changed files with 2 additions and 2 deletions
|
@ -198,8 +198,6 @@ IntrusivePtr<T> cast_intrusive(IntrusivePtr<U> p) noexcept
|
|||
return {AdoptRef{}, static_cast<T*>(p.release())};
|
||||
}
|
||||
|
||||
} // namespace zeek
|
||||
|
||||
// -- comparison to nullptr ----------------------------------------------------
|
||||
|
||||
/**
|
||||
|
@ -292,3 +290,5 @@ auto operator!=(const zeek::IntrusivePtr<T>& x, const zeek::IntrusivePtr<U>& y)
|
|||
{
|
||||
return x.get() != y.get();
|
||||
}
|
||||
|
||||
} // namespace zeek
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue