Replacing std::format with fmt::format

This commit is contained in:
Dynamitos
2024-01-16 19:24:49 +01:00
parent c0da7d77a1
commit 861c146b46
55 changed files with 304 additions and 186 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
#include "Vector.h"
#include <regex>
#include <format>
#include <fmt/core.h>
#include <sstream>
#include <nlohmann/json.hpp>
#include "Serialization/ArchiveBuffer.h"
@@ -8,7 +9,7 @@ using namespace Seele;
void to_json(nlohmann::json& j, const Vector& vec)
{
j = nlohmann::json{std::format("({}, {}, {})", vec.x, vec.y, vec.z)};
j = nlohmann::json{fmt::format("({}, {}, {})", vec.x, vec.y, vec.z)};
}
void from_json(const nlohmann::json& j, Vector& vec)