~/talk

I SPY with my little eye Boost.Predef in a constexpr world

Talkat CppCon 2019 · 2019-09-15..09-20· [compilers-and-language-design]
slides:none on file

A tiny library called spy provides a constexpr-compatible Boost.Predef clone that exposes objects like spy::gcc and spy::os so code can write if constexpr tests against compiler, platform, and feature versions. It discovers that plain if constexpr still parses unused branches so it adds patterns using templates and concepts to avoid ill-formed code, and offers a runtime CPUID wrapper for CPU feature detection. The crate is rough but practical and compiles in real projects.

AI-written summary · about

  1. 0:00Modern C++ and macros
  2. 0:31Introducing the spy library
  3. 2:15Limitations of constexpr
  4. 4:42Future potential and closing
~/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.