updated build system and fixes
Some checks failed
BlockStorage/repertory/pipeline/head There was a failure building this commit

This commit is contained in:
2024-08-07 15:01:07 -05:00
parent eaae2fea77
commit 33fa52f5a4
6 changed files with 79 additions and 472 deletions

View File

@ -157,7 +157,9 @@ auto write_json_file(std::string_view path,
}
#endif // defined(PROJECT_ENABLE_LIBSODIUM) && defined(PROJECT_ENABLE_BOOST)
return file.write(data.dump(), 0U);
auto json_str = data.dump();
return file.write(reinterpret_cast<const unsigned char *>(json_str.c_str()),
json_str.size(), 0U);
} catch (const std::exception &e) {
utils::error::handle_exception(function_name, e);
} catch (...) {