From ce921e31be6cbabad9bd62196ea5e7469ecc9a7f Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 24 Feb 2026 15:29:34 -0500 Subject: [PATCH] Use explicit operator bool() --- include/rcp.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/rcp.h b/include/rcp.h index ca010bb..51d28ec 100644 --- a/include/rcp.h +++ b/include/rcp.h @@ -122,12 +122,7 @@ public: return *ptr; } - bool operator!() const - { - return !ptr; - } - - operator bool() const + explicit operator bool() const { return ptr != nullptr; }