1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:38:10 +00:00

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.
This commit is contained in:
Andreas Kling 2020-02-02 01:55:02 +01:00
parent 583e9ad372
commit 6ab9dc4ff4

View file

@ -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)
{