X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2Fio%2Fasync%2FDelayedDestructionBase.h;fp=folly%2Fio%2Fasync%2FDelayedDestructionBase.h;h=9375baa0ce266388a8827f19c357b95c3b0e2bdd;hp=5edd64bddbe57a8720efd6230f6fbadfaea0cbc4;hb=18de341f84035f76395347f77a8cc71d0461ab37;hpb=b529367b595dd4da7e70569cbea36d30ace4fa39 diff --git a/folly/io/async/DelayedDestructionBase.h b/folly/io/async/DelayedDestructionBase.h index 5edd64bd..9375baa0 100644 --- a/folly/io/async/DelayedDestructionBase.h +++ b/folly/io/async/DelayedDestructionBase.h @@ -247,25 +247,25 @@ inline bool operator !=( const DelayedDestructionBase::DestructorGuard& right) { return left.get() != right.get(); } -inline bool operator ==( +inline bool operator==( const DelayedDestructionBase::DestructorGuard& left, - std::nullptr_t right) { - return left.get() == right; + std::nullptr_t) { + return left.get() == nullptr; } -inline bool operator ==( - std::nullptr_t left, +inline bool operator==( + std::nullptr_t, const DelayedDestructionBase::DestructorGuard& right) { - return left == right.get(); + return nullptr == right.get(); } -inline bool operator !=( +inline bool operator!=( const DelayedDestructionBase::DestructorGuard& left, - std::nullptr_t right) { - return left.get() != right; + std::nullptr_t) { + return left.get() != nullptr; } -inline bool operator !=( - std::nullptr_t left, +inline bool operator!=( + std::nullptr_t, const DelayedDestructionBase::DestructorGuard& right) { - return left != right.get(); + return nullptr != right.get(); } template @@ -281,27 +281,27 @@ inline bool operator !=( return left.get() != right.get(); } template -inline bool operator ==( +inline bool operator==( const DelayedDestructionBase::IntrusivePtr& left, - std::nullptr_t right) { - return left.get() == right; + std::nullptr_t) { + return left.get() == nullptr; } template -inline bool operator ==( - std::nullptr_t left, +inline bool operator==( + std::nullptr_t, const DelayedDestructionBase::IntrusivePtr& right) { - return left == right.get(); + return nullptr == right.get(); } template -inline bool operator !=( +inline bool operator!=( const DelayedDestructionBase::IntrusivePtr& left, - std::nullptr_t right) { - return left.get() != right; + std::nullptr_t) { + return left.get() != nullptr; } template -inline bool operator !=( - std::nullptr_t left, +inline bool operator!=( + std::nullptr_t, const DelayedDestructionBase::IntrusivePtr& right) { - return left != right.get(); + return nullptr != right.get(); } } // namespace folly