osrm-backend
osrm-backend copied to clipboard
Replace deprecated std::is_trivial
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.
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.