Skip to content

Commit

Permalink
make latlng formattable with fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Feb 22, 2024
1 parent 73e4f6f commit 03bee0d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/geo/latlng.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<geo::latlng> : ostream_formatter {};

#endif

0 comments on commit 03bee0d

Please sign in to comment.