From 65346dc54d5326786b3ff055a14eadef2104fb81 Mon Sep 17 00:00:00 2001 From: Bronek Kozicki Date: Wed, 25 Oct 2023 18:07:18 +0000 Subject: [PATCH] Remove include --- src/test/jtx/TestHelpers.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/test/jtx/TestHelpers.h b/src/test/jtx/TestHelpers.h index 2bee47a6411..7b4cae51554 100644 --- a/src/test/jtx/TestHelpers.h +++ b/src/test/jtx/TestHelpers.h @@ -27,17 +27,25 @@ #include #include -#include +#include namespace ripple { namespace test { namespace jtx { // Helper to make vector from iterable +template +concept iterable = requires(T& v) { + std::begin(v); + std::end(v); + }; + +template auto -make_vector(auto const& input) requires std::ranges::range +make_vector(Input const& input) + requires iterable { - return std::vector(std::ranges::begin(input), std::ranges::end(input)); + return std::vector(std::begin(input), std::end(input)); } // Functions used in debugging