diff --git a/example/glide_computer/include/geographic.h b/example/glide_computer/include/geographic.h index 731425e3..5deb1b1c 100644 --- a/example/glide_computer/include/geographic.h +++ b/example/glide_computer/include/geographic.h @@ -105,7 +105,7 @@ struct STD_FMT::formatter : formatter auto format(geographic::latitude lat, FormatContext& ctx) { - STD_FMT::vformat_to(ctx.out(), lat.value() > 0 ? "N" : "S", {}); + STD_FMT::format_to(ctx.out(), "{}", lat.value() > 0 ? 'N' : 'S'); return formatter::format(lat.value() > 0 ? lat.value() : -lat.value(), ctx); } }; @@ -115,7 +115,7 @@ struct STD_FMT::formatter : formatter auto format(geographic::longitude lon, FormatContext& ctx) { - STD_FMT::vformat_to(ctx.out(), lon.value() > 0 ? "E" : "W", {}); + STD_FMT::format_to(ctx.out(), "{}", lon.value() > 0 ? 'E' : 'W'); return formatter::format(lon.value() > 0 ? lon.value() : -lon.value(), ctx); } };