Skip to content

Commit

Permalink
Use std::filesystem::path for test file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
rmisev committed Dec 8, 2024
1 parent 96dbc1f commit 43d1864
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/picojson_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// https://github.com/kazuho/picojson
#include "picojson/picojson.h"

#include <filesystem>
#include <fstream>
#include <iostream>
#include <iterator>
Expand Down Expand Up @@ -134,7 +135,7 @@ enum {
// Parses a JSON file using the specified PicoJSON parsing context

template <typename Context>
inline int load_file(Context& ctx, const char* file_name, const char* title = nullptr) {
inline int load_file(Context& ctx, const std::filesystem::path& file_name, const char* title = nullptr) {
try {
if (title)
std::cout << title << ": " << file_name << '\n';
Expand Down

0 comments on commit 43d1864

Please sign in to comment.