filmov
tv
C++Now 2019: Timur Doumler “Better CTAD for C++20”

Показать описание
—
—
Class Template Argument Deduction (CTAD), introduced in C++17, is a useful feature that allows us to write cleaner and shorter code by omitting class template arguments. Unfortunately, the actual language rules behind CTAD are quite complex, and there are many pitfalls. CTAD sometimes deduces unexpected template arguments, and often just doesn’t work at all on certain classes, even if most users would expect that it should.
This talk summarises the actual language rules behind CTAD and its most annoying flaws and pitfalls. We will then talk about how the upcoming C++20 standard will remove some of those flaws, leading to better and safer CTAD that is easier to use.
—
Timur Doumler
Timur Doumler is a C++ developer specialising in audio and music technology, member of the ISO C++ committee, and program chair of the Audio Developer Conference (ADC). He is passionate about writing clean code, providing good tools, evolving the C++ language, and building inclusive communities.
—
---
*--*
---
—
Class Template Argument Deduction (CTAD), introduced in C++17, is a useful feature that allows us to write cleaner and shorter code by omitting class template arguments. Unfortunately, the actual language rules behind CTAD are quite complex, and there are many pitfalls. CTAD sometimes deduces unexpected template arguments, and often just doesn’t work at all on certain classes, even if most users would expect that it should.
This talk summarises the actual language rules behind CTAD and its most annoying flaws and pitfalls. We will then talk about how the upcoming C++20 standard will remove some of those flaws, leading to better and safer CTAD that is easier to use.
—
Timur Doumler
Timur Doumler is a C++ developer specialising in audio and music technology, member of the ISO C++ committee, and program chair of the Audio Developer Conference (ADC). He is passionate about writing clean code, providing good tools, evolving the C++ language, and building inclusive communities.
—
---
*--*
---
C++Now 2019: Timur Doumler “Better CTAD for C++20”
C++Now 2019: Timur Doumler “ISO/IEC 14882”
C++Now 2019: Ben Deane “What a Conference! NOW 30 That's What I Call C++”
4Developers 2019: Initialisation in modern C++ [ENG], Timur Doumler
Type punning in modern C++ - Timur Doumler - CppCon 2019
ISO/IEC 14882 - Timur Doumler - CppCon 2019
CppCon 2019: Timur Doumler “C++20: The small things”
CppCon 2016: Timur Doumler “Readable C++'
Timur Doumler “Audio in standard C++” - C++Now 2019
Core C++ 2019 :: Timur Doumler :: Initialisation in modern C++
C++20: the small things - Timur Doumler - Meeting C++ 2019
CppCon 2016: Timur Doumler “Want fast C++? Know your hardware!'
C++Now 2019: Chandler Carruth “A clean and minimal map API”
CppCon 2019: Nick Uhlenhuth “Upgrade from 'permissive C++' to 'modern C++' with ...
CppCon 2018: Timur Doumler “Can I has grammar?”
Core C++ 2019 Timur Doumler Initialisation in modern C++
C++20: The small things, Timur Doumler ➠ CoreHard Autumn 2019
Lightning Talk: Direct Aggregate Initialisation - Timur Doumler - CppCon 2021
CppCon 2015: Timur Doumler “C++ in the Audio Industry”
C++Now 2019: Peter Sommerlad “Rule of DesDeMovA”
Audio in standard C++ - Timur Doumler [ACCU 2019]
C++Now and CppCon, the View From Inside - Robin Kuzmin - C++Now 2019
Modern C++ in Embedded OS Dev - Fatih Bakir - C++Now 2019
Standard Attributes in C and C++ - Timur Doumler - ACCU 2023 [Rerelease]
Комментарии