Skip to content

Commit

Permalink
Fix clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtatcam committed Feb 21, 2024
1 parent 8d9e25f commit a9885ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 5 additions & 4 deletions src/ripple/app/paths/impl/Steps.h
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,12 @@ toStrands(
AMMContext& ammContext,
beast::Journal j);

template <typename A>
concept StepAsset =
!(std::is_same_v<A, STAmount> || std::is_same_v<A, MPTAmount>);

/// @cond INTERNAL
template <class TIn, class TOut, class TDerived>
requires(
!(std::is_same_v<TIn, STAmount> || std::is_same_v<TIn, MPTAmount> ||
std::is_same_v<TOut, STAmount> || std::is_same_v<TOut, MPTAmount>))
template <StepAsset TIn, StepAsset TOut, class TDerived>
struct StepImp : public Step
{
explicit StepImp() = default;
Expand Down
6 changes: 1 addition & 5 deletions src/ripple/app/paths/impl/StrandFlow.h
Original file line number Diff line number Diff line change
Expand Up @@ -550,11 +550,7 @@ class ActiveStrands
@return Actual amount in and out from the strands, errors, and payment
sandbox
*/
template <class TInAmt, class TOutAmt>
requires(!(
std::is_same_v<TInAmt, STAmount> || std::is_same_v<TInAmt, MPTAmount> ||
std::is_same_v<TOutAmt, STAmount> ||
std::is_same_v<TOutAmt, MPTAmount>))
template <StepAsset TInAmt, StepAsset TOutAmt>
FlowResult<TInAmt, TOutAmt>
flow(
PaymentSandbox const& baseView,
Expand Down

0 comments on commit a9885ab

Please sign in to comment.