From 7e1f9f306e7840432aff79f20ffe98b8e8c91613 Mon Sep 17 00:00:00 2001 From: mutouyun Date: Sun, 2 Apr 2023 21:06:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20[imp]=20=E2=80=98T=E2=80=99=20was=20not?= =?UTF-8?q?=20declared=20in=20this=20scope.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/libimp/expected.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/libimp/expected.h b/include/libimp/expected.h index 587ebd8..533e355 100644 --- a/include/libimp/expected.h +++ b/include/libimp/expected.h @@ -192,11 +192,11 @@ struct value_getter : data_union { using data_union::data_union; template - value_getter(U &&other) : data_union(nullptr) { + value_getter(U &&other) : data_union(nullptr) { if (other) { - construct>(this, in_place); + construct>(this, in_place); } else { - construct>(this, unexpected, std::forward(other).error()); + construct>(this, unexpected, std::forward(other).error()); } }