3 ms·
Won't the compiler optimize it away even without constexpr or const? The compiler can see it doesn't get changed.
by Thorrez 3y ago
Won't the compiler optimize it away even without constexpr or const? The compiler can see it doesn't get changed.
- elteto 3y agoIt should. But const or constexpr also work as documentation.