[Tile-serving] [openstreetmap/osm2pgsql] fmtlib and C++20 (Issue #1704)

Jochen Topf notifications at github.com
Sat Jul 30 12:10:20 UTC 2022


> Any particular reason you want to stick with UDL, rather than switching to fmt::format?

The way I understood it in older versions of fmtlib you got compile time checking of format strings only when using the UDL syntax (and then only with newer C++ versions). I am not sure about that though, fmt lib docs for the older version are not available online any more. It took me a while back then to get all of it working properly and I don't want to spend the time again trying to figure out what the right way of doing things is that works across all versions. It really is a big guessing game unless the fmtlib people document what the right strategy is for backwards and forwards compatibility.

If you can research this and find a proper solution that would be great! Otherwise I think we'll just muddle through for another two or three years until we can use C++20 which comes with std::format and ditch fmtlib.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1704#issuecomment-1200146506
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/issues/1704/1200146506 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220730/79af25ad/attachment.htm>


More information about the Tile-serving mailing list