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
Notes: sideshowbarker 2024-07-19 13:16:41 +09:00

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 << '}';
}