Skip to content

Commit

Permalink
OrcLib: Utils: Result: add alias Success<T>
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienfl-orc committed Jan 26, 2021
1 parent 847a254 commit dfd7eab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/OrcLib/Utils/Result.h
Expand Up @@ -16,6 +16,9 @@ namespace Orc {
template <typename T>
using Result = boost::outcome_v2::std_result<T>;

template <typename T>
using Success = boost::outcome_v2::success_type<T>;

template <typename T>
T& operator*(Result<T>& result)
{
Expand Down

0 comments on commit dfd7eab

Please sign in to comment.