diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-02 01:55:02 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-02 02:03:39 +0100 |
commit | 6ab9dc4ff4bd1e5e35b350bf4e81bde2d6b2c615 (patch) | |
tree | 8c83c729c6a60be92649ff68a99dc28c47f9f670 /Libraries | |
parent | 583e9ad372388a88a82474dff0fcb1f30a153d21 (diff) | |
download | serenity-6ab9dc4ff4bd1e5e35b350bf4e81bde2d6b2c615.zip |
LibCore: is<CObject>(object) should not default to true
Otherwise we'll lie about anything that doesn't implement is<T>() and
think it's indeed a T.
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibCore/CObject.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Libraries/LibCore/CObject.h b/Libraries/LibCore/CObject.h index 2875bc719e..a98bfc9edc 100644 --- a/Libraries/LibCore/CObject.h +++ b/Libraries/LibCore/CObject.h @@ -151,9 +151,6 @@ private: template<typename T> inline bool is(const CObject&) { return false; } -template<> -inline bool is<CObject>(const CObject&) { return true; } - template<typename T> inline T& to(CObject& object) { |