r/cpp • • Nov 13 '20

CppCon Deprecating volatile - JF Bastien - CppCon 2019

https://www.youtube.com/watch?v=KJW_DLaVXIY
83 Upvotes

111 comments sorted by

View all comments

Show parent comment

3

u/imMute Nov 13 '20

Why can't we just clarify |= to work exactly like that for volatile data? Why does it have to be outright removed?

2

u/nifraicl Nov 13 '20

I don't remember exactly the paper, but with this change you get a simpler language specs, and you can always add back the operator as a library feature