1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 22:28:12 +00:00

CObject: Add LogStream operator<< for CObject.

This commit is contained in:
Andreas Kling 2019-07-14 10:59:26 +02:00
parent 2a9b627ae9
commit b4329a8eec

View file

@ -99,3 +99,8 @@ inline void CObject::for_each_child_of_type(Callback callback)
return IterationDecision::Continue;
});
}
inline const LogStream& operator<<(const LogStream& stream, const CObject& object)
{
return stream << object.class_name() << '{' << &object << '}';
}