Allow build with libc++ (#85)

This commit is contained in:
ur4t
2025-02-19 19:22:42 +08:00
committed by GitHub
parent 1b8d22f2b4
commit 5e29848f24
13 changed files with 27 additions and 28 deletions

View File

@@ -171,7 +171,7 @@ std::string pretty_dump(const Object& object, std::size_t indent = 2) {
auto repr = dump(object);
auto json = json::parse(repr);
if(!json) {
std::terminate();
std::abort();
}
llvm::SmallString<128> buffer = {std::format("{{0:{}}}", indent)};
return llvm::formatv(buffer.c_str(), *json);