Skip to content

Commit

Permalink
Update Glaze api
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaraslaut committed Sep 24, 2024
1 parent 5868cd7 commit 65cb767
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ include(FetchContent)
FetchContent_Declare(
glaze
GIT_REPOSITORY https://github.com/stephenberry/glaze.git
GIT_TAG main
GIT_TAG v3.4.2
GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(glaze)
Expand Down
2 changes: 1 addition & 1 deletion libtermbench/termbench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void Benchmark::runAll()

void Benchmark::summarizeToJson(std::ostream& os)
{
std::string buffer = glz::write_json(results_);
std::string buffer = glz::write_json(results_).value_or("error");
os << buffer;
}

Expand Down

0 comments on commit 65cb767

Please sign in to comment.