We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acc3290 commit 7162e7fCopy full SHA for 7162e7f
test/corelib/src/reflect/try_decode_json_tests.cpp
@@ -8,6 +8,7 @@
8
9
#include <map>
10
#include <vector>
11
+#include <tuple>
12
13
#include <catch/catch.hpp>
14
@@ -76,16 +77,16 @@ TEST_CASE("reflect decode json with error")
76
77
auto result = jsoncons::reflect::try_decode_json<std::tuple<bool,int,std::string>>(s);
78
79
REQUIRE(result);
- CHECK(get<0>(result.value()) == false);
80
+ CHECK(std::get<0>(result.value()) == false);
81
}
82
SECTION("decode array to pair")
83
{
84
std::string s = R"([1.5, "foo"])";
85
auto result = jsoncons::reflect::try_decode_json<std::pair<double,std::string>>(s);
86
87
- CHECK(1.5 == get<0>(result.value()));
88
- CHECK("foo" == get<1>(result.value()));
+ CHECK(1.5 == std::get<0>(result.value()));
89
+ CHECK("foo" == std::get<1>(result.value()));
90
91
92
0 commit comments