Skip to content

Commit 41bb715

Browse files
committed
make test use new APIs
1 parent b3e1d27 commit 41bb715

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/example3.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ int main() {
3232

3333
// get a specific value
3434
json::value z = v["test4"][3]["z"];
35-
std::cout << to_number(z) << std::endl;
36-
std::cout << to_integer(z) << std::endl;
35+
std::cout << json::to_number<float>(z) << std::endl;
36+
std::cout << json::to_number<int>(z) << std::endl;
3737

3838
std::cout << stringify(v, json::EscapeUnicode) << '\n';
3939
}

0 commit comments

Comments
 (0)