chromium / subspace

A concept-centered standard library for C++20, enabling safer and more reliable products and a more modern feel for C++ code.; Also home of Subdoc the code-documentation generator.
https://suslib.cc
Apache License 2.0
89 stars 15 forks source link

Test and fix constexpr impl of from-endian-bytes for all int sizes #453

Closed danakj closed 8 months ago

danakj commented 8 months ago

Add runtime and constexpr tests for from_ne_bytes(), from_be_bytes(), and from_le_bytes() for all unsigned integers. Other types just use the unsigned implementations.

This uncovered bugs in the constexpr implementations, so fix those.

And add clang 19 bots to test this against HEAD. Part of #454