C++20 breaks stuff - Timur Doumler - Meeting C++ 2018 Lightning Talks

preview_player
Показать описание
C++20 breaks stuff
Timur Doumler
Meeting C++ 2018 Lightning Talks

Slides
Рекомендации по теме
Комментарии
Автор

Are the dropped items in std:: _required_ to be removed to be conformant, or can a library vendor decide to leave some of them in?

JohnDlugosz
Автор

"required" made me change a lot of code.

Автор

Wait how do you deduce return type of <= operator now? Can you put that in a bracket?

davidledger
Автор

The initialization detail is why you should never initialize with { } unless you have to. It is inconsistent and constantly changing what it actually does, and even the most correct compiler implementations will allow things you have explicitly forbidden it to do (currently). At least it might be a little better in two years time, but in the meanwhile:

DON'T USE CURLY BRACKET INITIALIZATION!!!

Carewolf