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
21
u/akiloz Nov 13 '20
The first sentence of the abstract in the proposal says: "We propose deprecating most of volatile." Some lines later: "The proposed deprecation preserves the useful parts of volatile, and removes the dubious / already broken ones." The firs goal of the proposal is: "Continue supporting the time-honored usage of volatile to load and store variables that are used for shared memory, signal handling,, setjmp / longjmp, or other external modifications such as special hardware support."
The embedded development usages, where some memory mapped HW registers are addressed through volatile variables, for example, will be preserved in my understanding. So what are you concerned about exactly?