osrm-backend icon indicating copy to clipboard operation
osrm-backend copied to clipboard

Replace deprecated std::is_trivial

Open nyllet opened this issue 3 months ago • 1 comments

it's not possible to build two of the header files with c++26 since they are using the deprecated std::is_trivial:

propose to replace it with is_trivially_default_constructible && is_trivially_copyable which are available since c++11.

nyllet avatar Sep 14 '25 07:09 nyllet

Hi @nyllet and @DennisOSRM, PR #7248 missed two std::is_trivial instances in fingerprint.hpp and edge_based_graph_factory.hpp.

Also found that combining type traits with && triggers a clang-tidy misc-redundant-expression false positive. My PR #7291 fixes both issues by splitting the conditions into separate static_assert statements.

afarber avatar Dec 06 '25 19:12 afarber