diff --git a/src/ripple/app/paths/impl/Steps.h b/src/ripple/app/paths/impl/Steps.h index 38b9dfaea2e..a312064d1f3 100644 --- a/src/ripple/app/paths/impl/Steps.h +++ b/src/ripple/app/paths/impl/Steps.h @@ -443,11 +443,12 @@ toStrands( AMMContext& ammContext, beast::Journal j); +template +concept StepAsset = + !(std::is_same_v || std::is_same_v); + /// @cond INTERNAL -template - requires( - !(std::is_same_v || std::is_same_v || - std::is_same_v || std::is_same_v)) +template struct StepImp : public Step { explicit StepImp() = default; diff --git a/src/ripple/app/paths/impl/StrandFlow.h b/src/ripple/app/paths/impl/StrandFlow.h index 2caeb1bbff5..21082169d47 100644 --- a/src/ripple/app/paths/impl/StrandFlow.h +++ b/src/ripple/app/paths/impl/StrandFlow.h @@ -550,11 +550,7 @@ class ActiveStrands @return Actual amount in and out from the strands, errors, and payment sandbox */ -template - requires(!( - std::is_same_v || std::is_same_v || - std::is_same_v || - std::is_same_v)) +template FlowResult flow( PaymentSandbox const& baseView,