summaryrefslogtreecommitdiff
path: root/DevTools/UserspaceEmulator/ValueWithShadow.h
diff options
context:
space:
mode:
Diffstat (limited to 'DevTools/UserspaceEmulator/ValueWithShadow.h')
-rw-r--r--DevTools/UserspaceEmulator/ValueWithShadow.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/DevTools/UserspaceEmulator/ValueWithShadow.h b/DevTools/UserspaceEmulator/ValueWithShadow.h
index de66248a3d..9695c19056 100644
--- a/DevTools/UserspaceEmulator/ValueWithShadow.h
+++ b/DevTools/UserspaceEmulator/ValueWithShadow.h
@@ -24,6 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <AK/Format.h>
#include <AK/Platform.h>
#pragma once
@@ -160,3 +161,11 @@ inline void ValueAndShadowReference<T>::operator=(const ValueWithShadow<T>& othe
}
}
+
+template<typename T>
+struct AK::Formatter<UserspaceEmulator::ValueWithShadow<T>> : AK::Formatter<T> {
+ void format(StringBuilder& builder, UserspaceEmulator::ValueWithShadow<T> value, FormatterContext& context)
+ {
+ return Formatter<T>::format(builder, value.value(), context);
+ }
+};