Can `const` can affect the C++ optimizer?
Hint: https://godbolt.org/g/ZK665b
#cplusplus
https://godbolt.org/g/uKLCYQ Unfortunately, Visual Studio can't even optimize very well with const. If you make val constexpr, it finally does the best thing.
-
-
Helps if I set the right compiler flags. Results are the same anyway. https://godbolt.org/g/Z7EBLM
Kiitos. Käytämme tätä aikajanasi parantamiseen. KumoaKumoa
-
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.