Loading…
CppCon 2019 has ended
Wednesday, September 18 • 16:45 - 17:45
Data in the Type System: Complex Non-Type Template Parameters in C++20

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

This talk is about a new feature in C++20 which has significant implications
for compile-time programming: allowing class types to be used in non-type
template parameters (NTTPs).

Several talks at last year's CppCon pushed the boundaries of compile-time
string processing, with a common catch: reliance on an extension to C++'s UDLs
that the committee has been refusing to standardise since 2013. That extension
provides an easy way to get string data into the type system rather than just
into constexpr variables,

The talk will cover what that extension is, why it was never standardised, and
how class-type NTTPs make it unnecessary. We'll then talk about what can
and can't be done with class-type NTTPs, what the challenges of adding them to the
language were, and take a look at some things they've been used for.

Speakers
JS

Jeff Snyder

Vice President, PDT Partners
Jeff is a software developer in London's financial services industry, and has been an active member of the C++ standards committee since 2013 focusing on core language feature development. He started learning C++ around 2001, studied Computer Science at the University of Cambridge... Read More →


Wednesday September 18, 2019 16:45 - 17:45 MDT
Summit 4/5
  • Metaprogramming/Reflection