mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-02 08:49:20 -05:00
Remove fmt::format and replace with std::format
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user