From 6ab9dc4ff4bd1e5e35b350bf4e81bde2d6b2c615 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 2 Feb 2020 01:55:02 +0100 Subject: [PATCH] LibCore: is(object) should not default to true Otherwise we'll lie about anything that doesn't implement is() and think it's indeed a T. --- Libraries/LibCore/CObject.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/Libraries/LibCore/CObject.h b/Libraries/LibCore/CObject.h index 2875bc719e2..a98bfc9edc2 100644 --- a/Libraries/LibCore/CObject.h +++ b/Libraries/LibCore/CObject.h @@ -151,9 +151,6 @@ private: template inline bool is(const CObject&) { return false; } -template<> -inline bool is(const CObject&) { return true; } - template inline T& to(CObject& object) {