feat: std::format usage enabled for VS2022

This commit is contained in:
Mateusz Pusz
2021-11-15 16:28:26 +01:00
parent 57ec615d79
commit 0ce18dc3c7
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ using namespace glide_computer;
void print(std::string_view phase_name, timestamp start_ts, const glide_computer::flight_point& point, const glide_computer::flight_point& new_point)
{
fmt::print(
std::cout << STD_FMT::format(
"| {:<12} | {:>9%.1Q %q} (Total: {:>9%.1Q %q}) | {:>8%.1Q %q} (Total: {:>8%.1Q %q}) | {:>7%.0Q %q} ({:>6%.0Q %q}) |\n",
phase_name, quantity_cast<si::minute>(new_point.ts - point.ts), quantity_cast<si::minute>(new_point.ts - start_ts),
new_point.dist - point.dist, new_point.dist, new_point.alt - point.alt, new_point.alt);