~/talk

constexpr: Introduction

Talkat CppCon 2015 · 2015-09-21..09-25· [compilers-and-language-design]
links:none on file
slides:none on file

Covers how constexpr moves computations into compilation: use constexpr functions and values, static_asserts, recursion to build a compile-time binary literal, constexpr constructors with bodies in C++14, and debugging tricks (run the same code at runtime, or force a link-time error by referencing an unresolved symbol inside a throw). Notes practical wins for embedded and thread-safe constant containers, warns that compile vs runtime FP may differ, and cites Annex B minima like 512 recursive invocations and over a million full expressions.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 10:07What is constexpr
  3. 22:00constexpr values and literals
  4. 32:04constexpr functions basics
  5. 44:45C++11 constexpr constraints
  6. 49:09C++14 constexpr improvements
  7. 53:58Compile-time parsing example
  8. 57:08Debugging constexpr code
  9. 1:00:24Runtime vs compile-time errors
  10. 1:03:58Q&A and summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.