Skip to content

Commit 7162e7f

Browse files
committed
get -> std::get
1 parent acc3290 commit 7162e7f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/corelib/src/reflect/try_decode_json_tests.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <map>
1010
#include <vector>
11+
#include <tuple>
1112

1213
#include <catch/catch.hpp>
1314

@@ -76,16 +77,16 @@ TEST_CASE("reflect decode json with error")
7677
auto result = jsoncons::reflect::try_decode_json<std::tuple<bool,int,std::string>>(s);
7778

7879
REQUIRE(result);
79-
CHECK(get<0>(result.value()) == false);
80+
CHECK(std::get<0>(result.value()) == false);
8081
}
8182
SECTION("decode array to pair")
8283
{
8384
std::string s = R"([1.5, "foo"])";
8485
auto result = jsoncons::reflect::try_decode_json<std::pair<double,std::string>>(s);
8586

8687
REQUIRE(result);
87-
CHECK(1.5 == get<0>(result.value()));
88-
CHECK("foo" == get<1>(result.value()));
88+
CHECK(1.5 == std::get<0>(result.value()));
89+
CHECK("foo" == std::get<1>(result.value()));
8990
}
9091
}
9192

0 commit comments

Comments
 (0)