diff --git a/tstl/include/expected.hpp b/tstl/include/expected.hpp index a0443c58..d55289ce 100644 --- a/tstl/include/expected.hpp +++ b/tstl/include/expected.hpp @@ -66,7 +66,7 @@ union trivial_expected_storage { template union trivial_expected_storage { - using value_type = Type; ///< The value type + using value_type = void; ///< The value type using error_type = E; ///< The error type error_type error; ///< The error value @@ -112,7 +112,7 @@ struct non_trivial_expected_storage { template struct non_trivial_expected_storage { - using value_type = Type; ///< The value type + using value_type = void; ///< The value type using error_type = E; ///< The error type error_type error; ///< The error value