From 6f74c1bb11dde6f50f6fd86d0d1cef9c1a776002 Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Tue, 5 Oct 2021 22:05:42 +0200 Subject: [PATCH] AK: Allow to "get a result" from Result This is to make Result work inside TRY --- AK/Result.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AK/Result.h b/AK/Result.h index edfb3f8927..85c4f90722 100644 --- a/AK/Result.h +++ b/AK/Result.h @@ -93,6 +93,10 @@ public: Result(const Result& other) = default; ~Result() = default; + // For compatibility with TRY(). + void value() {}; + void release_value() {}; + ErrorType& error() { return m_error.value();