From be171aabece56c4d8a5d08dab022a542c8e73184 Mon Sep 17 00:00:00 2001 From: Gregory Tsipenyuk Date: Tue, 23 Jul 2024 18:34:13 -0400 Subject: [PATCH] Fix clang format --- include/xrpl/protocol/STEitherAmount.h | 10 ++++++---- src/test/app/MPToken_test.cpp | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/include/xrpl/protocol/STEitherAmount.h b/include/xrpl/protocol/STEitherAmount.h index c18c806f1e5..a65c35b6be5 100644 --- a/include/xrpl/protocol/STEitherAmount.h +++ b/include/xrpl/protocol/STEitherAmount.h @@ -34,6 +34,10 @@ template concept ValidAssetType = std::is_same_v || std::is_same_v; +template +concept EitherAmountType = std::is_same_v || + std::is_same_v>; + class STEitherAmount : public STBase, public CountedObject { private: @@ -269,10 +273,8 @@ isMPT(T const& amount) return false; } -template - requires( - std::is_same_v || - std::is_same_v>) bool +template +bool isMPT(T const& amount) { if constexpr (std::is_same_v) diff --git a/src/test/app/MPToken_test.cpp b/src/test/app/MPToken_test.cpp index f49833cf1dd..1128d7b1fd8 100644 --- a/src/test/app/MPToken_test.cpp +++ b/src/test/app/MPToken_test.cpp @@ -861,7 +861,8 @@ class MPToken_test : public beast::unit_test::suite mptAlice.create(); - env(offer(alice, mptAlice.mpt(100), XRP(100)), ter(temMPT_NOT_SUPPORTED)); + env(offer(alice, mptAlice.mpt(100), XRP(100)), + ter(temMPT_NOT_SUPPORTED)); env.close(); BEAST_EXPECT(expectOffers(env, alice, 0));