[Tile-serving] [openstreetmap/osm2pgsql] Use C++17 feature constexpr if to simplify pgsql code (PR #1892)

Jochen Topf notifications at github.com
Tue Jan 17 09:43:49 UTC 2023


Also adds a crucial std::decay_t<> which makes sure this works for all sorts of types.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/osm2pgsql/pull/1892

-- Commit Summary --

  * Use C++17 feature constexpr if to simplify pgsql code

-- File Changes --

    M src/pgsql.hpp (84)
    M tests/test-pgsql.cpp (10)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/1892.patch
https://github.com/openstreetmap/osm2pgsql/pull/1892.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1892
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/pull/1892 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230117/1ea60f33/attachment-0001.htm>


More information about the Tile-serving mailing list