Remove fmt::format and replace with std::format

This commit is contained in:
Alexander Bock
2024-03-24 20:19:14 +01:00
parent 9878bfc8f7
commit 3ba346a227
246 changed files with 1343 additions and 1300 deletions
+2 -2
View File
@@ -76,7 +76,7 @@ std::string formatJson(T value) {
values += std::to_string(value[i]) + ',';
}
values.pop_back();
return fmt::format("[{}]", values);
return std::format("[{}]", values);
}
else if constexpr (internal::isGlmMatrix<T>()) {
std::string values;
@@ -86,7 +86,7 @@ std::string formatJson(T value) {
}
}
values.pop_back();
return fmt::format("[{}]", values);
return std::format("[{}]", values);
}
else {
static_assert(sizeof(T) == 0, "JSON formatting of type T not implemented");
+1 -1
View File
@@ -578,7 +578,7 @@ public:
timout_c(ephemerisTime, format, bufferSize, outBuf);
if (failed_c()) {
throwSpiceError(fmt::format(
throwSpiceError(std::format(
"Error converting ephemeris time '{}' to date with format '{}'",
ephemerisTime, format
));