Skip to content

Commit

Permalink
Work around msvc bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-Aldorasi-Imprivata committed Sep 24, 2024
1 parent 2a8ff2b commit dd48f88
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/outcome/basic_result.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ SIGNATURE NOT RECOGNISED
SIGNATURE NOT RECOGNISED
*/
OUTCOME_TEMPLATE(class ErrorCondEnum)
OUTCOME_TREQUIRES(OUTCOME_TEXPR(error_type(make_error_code(ErrorCondEnum()))), //
OUTCOME_TREQUIRES(OUTCOME_TEXPR(error_type(make_error_code(std::declval<ErrorCondEnum>()))), //
OUTCOME_TPRED(predicate::template enable_error_condition_converting_constructor<ErrorCondEnum>))
constexpr basic_result(ErrorCondEnum &&t, error_condition_converting_constructor_tag /*unused*/ = error_condition_converting_constructor_tag()) noexcept(
noexcept(error_type(make_error_code(static_cast<ErrorCondEnum &&>(t))))) // NOLINT
Expand Down
2 changes: 1 addition & 1 deletion single-header/outcome-basic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4711,7 +4711,7 @@ SIGNATURE NOT RECOGNISED
SIGNATURE NOT RECOGNISED
*/
OUTCOME_TEMPLATE(class ErrorCondEnum)
OUTCOME_TREQUIRES(OUTCOME_TEXPR(error_type(make_error_code(ErrorCondEnum()))), //
OUTCOME_TREQUIRES(OUTCOME_TEXPR(error_type(make_error_code(std::declval<ErrorCondEnum>()))), //
OUTCOME_TPRED(predicate::template enable_error_condition_converting_constructor<ErrorCondEnum>))
constexpr basic_result(ErrorCondEnum &&t, error_condition_converting_constructor_tag /*unused*/ = error_condition_converting_constructor_tag()) noexcept(
noexcept(error_type(make_error_code(static_cast<ErrorCondEnum &&>(t))))) // NOLINT
Expand Down
2 changes: 1 addition & 1 deletion single-header/outcome-experimental.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4736,7 +4736,7 @@ SIGNATURE NOT RECOGNISED
SIGNATURE NOT RECOGNISED
*/
OUTCOME_TEMPLATE(class ErrorCondEnum)
OUTCOME_TREQUIRES(OUTCOME_TEXPR(error_type(make_error_code(ErrorCondEnum()))), //
OUTCOME_TREQUIRES(OUTCOME_TEXPR(error_type(make_error_code(std::declval<ErrorCondEnum>()))), //
OUTCOME_TPRED(predicate::template enable_error_condition_converting_constructor<ErrorCondEnum>))
constexpr basic_result(ErrorCondEnum &&t, error_condition_converting_constructor_tag /*unused*/ = error_condition_converting_constructor_tag()) noexcept(
noexcept(error_type(make_error_code(static_cast<ErrorCondEnum &&>(t))))) // NOLINT
Expand Down
2 changes: 1 addition & 1 deletion single-header/outcome.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5648,7 +5648,7 @@ SIGNATURE NOT RECOGNISED
SIGNATURE NOT RECOGNISED
*/
OUTCOME_TEMPLATE(class ErrorCondEnum)
OUTCOME_TREQUIRES(OUTCOME_TEXPR(error_type(make_error_code(ErrorCondEnum()))), //
OUTCOME_TREQUIRES(OUTCOME_TEXPR(error_type(make_error_code(std::declval<ErrorCondEnum>()))), //
OUTCOME_TPRED(predicate::template enable_error_condition_converting_constructor<ErrorCondEnum>))
constexpr basic_result(ErrorCondEnum &&t, error_condition_converting_constructor_tag /*unused*/ = error_condition_converting_constructor_tag()) noexcept(
noexcept(error_type(make_error_code(static_cast<ErrorCondEnum &&>(t))))) // NOLINT
Expand Down

0 comments on commit dd48f88

Please sign in to comment.