Skip to content

Commit

Permalink
add unexpected_type (deprecated) for use with std::expected (#66, tha…
Browse files Browse the repository at this point in the history
…nks @psyinf)
  • Loading branch information
martinmoene committed Jun 4, 2024
1 parent f2e88d0 commit 43d9b4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/nonstd/expected.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ namespace nonstd {
using std::unexpect_t;
using std::unexpect;

//[[deprecated("replace unexpected_type with unexpected")]]

template< typename E >
using unexpected_type = unexpected<E>;

// Unconditionally provide make_unexpected():

template< typename E>
Expand Down

0 comments on commit 43d9b4a

Please sign in to comment.