diff --git a/include/tl/expected.hpp b/include/tl/expected.hpp index 7fd6467..33ef8d2 100644 --- a/include/tl/expected.hpp +++ b/include/tl/expected.hpp @@ -1283,9 +1283,10 @@ class expected : private detail::expected_move_assign_base, using ctor_base = detail::expected_default_ctor_base; public: - typedef T value_type; - typedef E error_type; - typedef unexpected unexpected_type; + using value_type = T; + using error_type = E; + using unexpected_type = unexpected; + template using rebind = expected; #if defined(TL_EXPECTED_CXX14) && !defined(TL_EXPECTED_GCC49) && \ !defined(TL_EXPECTED_GCC54) && !defined(TL_EXPECTED_GCC55)