Loading…
C++Now 2019 has ended
Back To Schedule
Tuesday, May 7 • 14:30 - 16:00
Better CTAD for C++20

Log in to save this to your schedule, view media, leave feedback and see who's attending!

Feedback form is now closed.
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.

Speakers
avatar for Timur Doumler

Timur Doumler

Cradle
Timur Doumler is a C++ developer specialising in audio and music technology, an active member of the ISO C++ committee, and Conference Chair of the Audio Developer Conference (ADC). He is passionate about building communities, clean code, good tools, and the evolution of C++.


Tuesday May 7, 2019 14:30 - 16:00 MDT
Hudson Commons
  lecture