Skip to content

Commit b353d56

Browse files
committed
Fix gcc 13 compile error
1 parent e718378 commit b353d56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/rpc/GetAggregatePrice_test.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ class GetAggregatePrice_test : public beast::unit_test::suite
3535
{
3636
testcase("Errors");
3737
using namespace jtx;
38+
using Oracles = std::vector<std::pair<Account, std::uint32_t>>;
3839
Account const owner{"owner"};
3940
Account const some{"some"};
40-
static std::vector<std::pair<Account, std::uint32_t>> oracles = {
41-
{owner, 1}};
41+
static Oracles oracles = {{owner, 1}};
4242

4343
{
4444
Env env(*this);
@@ -62,7 +62,7 @@ class GetAggregatePrice_test : public beast::unit_test::suite
6262
"Missing field 'oracles'.");
6363

6464
// empty oracles array
65-
ret = Oracle::aggregatePrice(env, "XRP", "USD", {{}});
65+
ret = Oracle::aggregatePrice(env, "XRP", "USD", Oracles{});
6666
BEAST_EXPECT(ret[jss::error].asString() == "oracleMalformed");
6767

6868
// invalid oracle document id

0 commit comments

Comments
 (0)