Skip to content

Commit

Permalink
LibCore: is<CObject>(object) should not default to true
Browse files Browse the repository at this point in the history
Otherwise we'll lie about anything that doesn't implement is<T>() and
think it's indeed a T.
  • Loading branch information
awesomekling committed Feb 2, 2020
1 parent 583e9ad commit 6ab9dc4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Libraries/LibCore/CObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@ class CObject
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)
{
Expand Down

0 comments on commit 6ab9dc4

Please sign in to comment.