Skip to content

Commit

Permalink
Use string instead string_view
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanpenman committed Aug 25, 2023
1 parent 373576a commit d52d2dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/picojson_format_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <iostream>
#include <string_view>
#include <string>

#define PICOJSON_USE_INT64
#include "picojson.h"
Expand Down Expand Up @@ -37,7 +37,7 @@ constexpr auto invalidStrs = R"JSON([
["2023-07-18T14:46:22Z", "2023-07-18T14:46:22Z", "2023-07-18T14:46:22Z", "2023-07-18T14:46:22Z"]
])JSON";

picojson::value Parse(std::string_view serialized, picojson::value def)
picojson::value Parse(std::string serialized, picojson::value def)
{
picojson::value v;
auto first = serialized.data();
Expand Down

0 comments on commit d52d2dd

Please sign in to comment.