~/talk

Unit Testing an Expression Template Library in C++20

Talkat C++Now 2024 · 2024-04-29..05-03· [testing, c-and-cpp]
slides:none on file

An expression-template parser-combinator called token parser-combinator targets C++20 and parses spans of any value type; a full JSON parser is implemented and works. Unit tests run both at compile-time and runtime using GoogleTest, Boost.Test, Catch2, doctest, Snitch and UT, plus a custom macro-based framework. Surprise: Snitch and UT capture compile-time verdicts and report them at runtime instead of always failing the build. Upcoming C++26 features (user-generated static-assert messages) make compile-time + runtime checks and prettier diagnostics practical.

AI-written summary · about

  1. 0:00Introduction
  2. 4:52Goals of compile-time testing
  3. 5:14Library demo: Token parser
  4. 19:19Recursive JSON parser
  5. 23:38Testing frameworks overview
  6. 35:17Runtime testing with frameworks
  7. 40:13Compile-time testing with frameworks
  8. 56:24Custom testing framework
  9. 1:05:54C++23 and C++26 features
  10. 1:14:03Q&A
~/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.