diff --git a/AK/RefPtr.h b/AK/RefPtr.h index aad97e22c2..eb5b4afff9 100644 --- a/AK/RefPtr.h +++ b/AK/RefPtr.h @@ -467,6 +467,14 @@ inline const LogStream& operator<<(const LogStream& stream, const RefPtr +struct Formatter> : Formatter { + void format(FormatBuilder& builder, const RefPtr& value) + { + Formatter::format(builder, value.ptr()); + } +}; + template struct Traits> : public GenericTraits> { using PeekType = const T*;