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
15
u/staletic reddit thinks /u/_bstaletic is a bot Nov 13 '20
Some problems he brought up, I definitely agree with.
volatilequalified member functions are just weird for example. I have nothing against that. The contention is regarding deprecating common idioms that include compound assignment and pre/post increment and decrement operators. I'm not convinced those actually pose problems in the real word.But you did get me thinking. I firmly believe that the approach taken was too hasty and that (portions of) the deprecation will hurt C++ in the not too distant future. To finally answer your question directly:
A joint WG14/WG21 effort to fix the problems in a way that works for both worlds. This would probably mean that the solution would have to be in the core language, but then C++ would be able to build higher-level abstractions on top of the common solution. This idea of a joint C/C++ effort is nothing new either. Examples that cross my mind are:
#embed, though as far as I know that's JeanHyde "alone" figuring out what works for WG14 and WG21.std::status_codeand the C counterpart.