by vinkelhake · 1y ago · 0 comments
Uh, what? That has worked fine since the introduction of constexpr in C++11.
constexpr auto f(uint8_t *x) { return std::bit_cast<char *>(x); }