Skip to content

Commit

Permalink
Update taoJSON (and PEGTL).
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinH committed Sep 17, 2023
1 parent 5e726d1 commit fec680f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion external/json
Submodule json updated 374 files
2 changes: 1 addition & 1 deletion include/tao/config/internal/json_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace tao::config::internal
pegtl::position position;

json_base()
: position( pegtl::internal::iterator{ nullptr, 1, 1, 1 }, "TODO: Delete the default c'tor!" )
: position( pegtl::internal::frobnicator{ nullptr, 1, 1, 1 }, "TODO: Delete the default c'tor!" )
{}
// json_base() = delete;

Expand Down
2 changes: 1 addition & 1 deletion include/tao/config/internal/system_utility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace tao::config::internal

[[nodiscard]] inline std::string read_file_throws( const std::string& filename )
{
return pegtl::internal::file_reader( filename ).read();
return pegtl::internal::read_file_stdio( filename ).read_string();
}

[[nodiscard]] inline std::optional< std::string > read_file_nothrow( const std::string& filename )
Expand Down

0 comments on commit fec680f

Please sign in to comment.