From d52d2dd05339a8a6f45a58cdddcd94b88a4ec174 Mon Sep 17 00:00:00 2001 From: Tristan Penman Date: Sat, 26 Aug 2023 09:03:02 +1000 Subject: [PATCH] Use string instead string_view --- examples/picojson_format_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/picojson_format_test.cpp b/examples/picojson_format_test.cpp index edfc930..c67a50d 100644 --- a/examples/picojson_format_test.cpp +++ b/examples/picojson_format_test.cpp @@ -1,5 +1,5 @@ #include -#include +#include #define PICOJSON_USE_INT64 #include "picojson.h" @@ -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();