From fce3a125be965842cb2a8bb028edf95cfad1efee Mon Sep 17 00:00:00 2001 From: 2LoS Date: Sun, 26 Oct 2025 14:57:33 +0100 Subject: 'operator bool()' is marked as explicit --- dev/CompilerKit/Ref.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dev/CompilerKit/Ref.h') diff --git a/dev/CompilerKit/Ref.h b/dev/CompilerKit/Ref.h index bbe67de..381b628 100644 --- a/dev/CompilerKit/Ref.h +++ b/dev/CompilerKit/Ref.h @@ -47,7 +47,7 @@ class Ref final { Bool IsStrong() const { return m_Strong; } - operator bool() { return *m_Class; } + explicit operator bool() { return *m_Class; } private: T* m_Class{nullptr}; -- cgit v1.2.3