|
|
|
|
|
by leni536
72 days ago
|
|
Careful, only language UB is guaranteed to be detected in constant evaluation, UB in standard library functions isn't. It is a good sanity check though. Also it seems that bit_cast in particular is going to be strengthened in this regard: https://cplusplus.github.io/LWG/issue4539 |
|