diff --git a/AK/OwnPtr.h b/AK/OwnPtr.h index 98246375b3..1b4764d9ce 100644 --- a/AK/OwnPtr.h +++ b/AK/OwnPtr.h @@ -200,6 +200,13 @@ struct Traits> : public DefaultTraits> { static bool equals(OwnPtr const& a, OwnPtr const& b) { return a.ptr() == b.ptr(); } }; +template +struct Formatter> : Formatter { + ErrorOr format(FormatBuilder& builder, OwnPtr const& value) + { + return Formatter::format(builder, value.ptr()); + } +}; } #if USING_AK_GLOBALLY