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()); } }