build: fmt updated to 8.0.1
This commit is contained in:
1 parent
80abffc058
commit
8740857a47
6 files changed
+14
-12
No files matched your search
@@ -44,7 +44,7 @@ template<typename Derived, typename Rep>
|
||||
struct coordinate {
|
||||
using value_type = Rep;
|
||||
constexpr explicit coordinate(value_type v) : value_(v) {}
|
||||
value_type value() const { return value_; }
|
||||
constexpr value_type value() const { return value_; }
|
||||
auto operator<=>(const coordinate&) const = default;
|
||||
private:
|
||||
value_type value_;
|
||||
@@ -110,7 +110,7 @@ struct fmt::formatter<geographic::latitude> : formatter<geographic::latitude::va
|
||||
template<typename FormatContext>
|
||||
auto format(geographic::latitude lat, FormatContext& ctx)
|
||||
{
|
||||
format_to(ctx.out(), lat.value() > 0 ? "N" : "S");
|
||||
format_to(ctx.out(), fmt::runtime(lat.value() > 0 ? "N" : "S"));
|
||||
return formatter<geographic::latitude::value_type>::format(lat.value() > 0 ? lat.value() : -lat.value(), ctx);
|
||||
}
|
||||
};
|
||||
@@ -120,7 +120,7 @@ struct fmt::formatter<geographic::longitude> : formatter<geographic::longitude::
|
||||
template<typename FormatContext>
|
||||
auto format(geographic::longitude lon, FormatContext& ctx)
|
||||
{
|
||||
format_to(ctx.out(), lon.value() > 0 ? "E" : "W");
|
||||
format_to(ctx.out(), fmt::runtime(lon.value() > 0 ? "E" : "W"));
|
||||
return formatter<geographic::longitude::value_type>::format(lon.value() > 0 ? lon.value() : -lon.value(), ctx);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -184,7 +184,8 @@ struct fmt::formatter<kalman::state<Qs...>> {
|
||||
units::detail::global_format_specs<char> global_specs = { specs.fill, specs.align, specs.width };
|
||||
units::detail::format_global_buffer(std::back_inserter(global_format_buffer), global_specs);
|
||||
|
||||
return format_to(ctx.out(), to_string(global_format_buffer), to_string(value_buffer));
|
||||
return format_to(ctx.out(), fmt::runtime(std::string_view(global_format_buffer.data(), global_format_buffer.size())),
|
||||
std::string_view(value_buffer.data(), value_buffer.size()));
|
||||
}
|
||||
private:
|
||||
detail::dynamic_format_specs<char> specs;
|
||||
@@ -221,7 +222,8 @@ struct fmt::formatter<kalman::estimation<Q>> {
|
||||
units::detail::global_format_specs<char> global_specs = { specs.fill, specs.align, specs.width };
|
||||
units::detail::format_global_buffer(std::back_inserter(global_format_buffer), global_specs);
|
||||
|
||||
return format_to(ctx.out(), to_string(global_format_buffer), to_string(value_buffer));
|
||||
return format_to(ctx.out(), fmt::runtime(std::string_view(global_format_buffer.data(), global_format_buffer.size())),
|
||||
std::string_view(value_buffer.data(), value_buffer.size()));
|
||||
}
|
||||
private:
|
||||
detail::dynamic_format_specs<char> specs;
|
||||
|
||||
Reference in new issue
Block a user