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
Notes: sideshowbarker 2024-07-19 09:42:48 +09:00

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