diff --git a/expected.hpp b/expected.hpp index c9fe9a6..2a3442d 100644 --- a/expected.hpp +++ b/expected.hpp @@ -158,8 +158,8 @@ constexpr bool operator>=(const unexpected &lhs, const unexpected &rhs) { /// *Example:* /// auto e1 = tl::make_unexpected(42); /// unexpected e2 (42); //same semantics -template unexpected make_unexpected(E &&e) { - return unexpected(std::forward(e)); +template unexpected::type> make_unexpected(E &&e) { + return unexpected::type>(std::forward(e)); } /// \brief A tag type to tell expected to construct the unexpected value