diff --git a/include/tl/expected.hpp b/include/tl/expected.hpp index 7dd82b7..9bc01b1 100644 --- a/include/tl/expected.hpp +++ b/include/tl/expected.hpp @@ -147,6 +147,11 @@ private: E m_val; }; +#ifdef __cpp_deduction_guides +template +unexpected(E) -> unexpected; +#endif + template constexpr bool operator==(const unexpected &lhs, const unexpected &rhs) { return lhs.value() == rhs.value();