News for hackers. Stuff that matters.
Re:std::launder: the most obscure new feature of C++17 by secondcoming on Thursday April 04, 2024 @05:56PM (#39936275)
Aren't they put into the .rodata section of the binary?

Crashing is exactly what happens, thankfully

https://godbolt.org/z/vKj9dcPMc

Re:std::launder: the most obscure new feature of C++17 by gary_0 on Thursday April 04, 2024 @06:26PM (#39936556)
Generally yes, if you have a bunch of const data in your C++ code, it will go in .rodata. Depending on the compiler/flags/optimizations, of course. https://stackoverflow.com/a/44938843