From 03bee0de6cbcbf34a3445bdb19ab90b07a67e9df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20G=C3=BCndling?= Date: Thu, 22 Feb 2024 15:04:05 +0100 Subject: [PATCH] make latlng formattable with fmt --- include/geo/latlng.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/geo/latlng.h b/include/geo/latlng.h index 289d1ea..d52fe46 100644 --- a/include/geo/latlng.h +++ b/include/geo/latlng.h @@ -32,3 +32,12 @@ latlng closest_on_segment(latlng const& x, latlng const& segment_from, uint32_t tile_hash_32(latlng const&); } // namespace geo + +#if __has_include("fmt/ostream.h") + +#include "fmt/ostream.h" + +template <> +struct fmt::formatter : ostream_formatter {}; + +#endif \ No newline at end of file