From c97f588d440155e5ebf31775b210d27f38c570b1 Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 7 Jan 2023 20:53:23 +0100 Subject: [PATCH] Fix TRY() with Option --- luna/include/luna/Option.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/luna/include/luna/Option.h b/luna/include/luna/Option.h index d8ca65f2..db68653b 100644 --- a/luna/include/luna/Option.h +++ b/luna/include/luna/Option.h @@ -113,6 +113,8 @@ template class Option explicit ErrorHandle() { } + + friend class Option; }; Option(const ErrorHandle&) : m_has_value(false)