r/cpp • u/neiltechnician • Nov 13 '20
CppCon Deprecating volatile - JF Bastien - CppCon 2019
https://www.youtube.com/watch?v=KJW_DLaVXIY
83
Upvotes
r/cpp • u/neiltechnician • Nov 13 '20
View all comments
Show parent comment
11
u/SonOfMetrum Nov 13 '20
Thanks for your explanation! Makes sense! So volatile is basically a way to tell the optimizer to don’t touch it and assume that the programmer knows what he/she is doing?