From 709cc85d96a24d9544a16ac54e16453c916dc56d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steven=20Dee=20=28J=C5=8Dshin=29?= Date: Wed, 28 Aug 2024 15:33:10 -0700 Subject: [PATCH] explicit operator bool --- ctl/shared_ptr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctl/shared_ptr.h b/ctl/shared_ptr.h index 2d10835a0..076a19d8e 100644 --- a/ctl/shared_ptr.h +++ b/ctl/shared_ptr.h @@ -322,7 +322,7 @@ class shared_ptr return rc ? rc->use_count() : 0; } - operator bool() const noexcept + explicit operator bool() const noexcept { return p; }