~/talk

A Physical Units Library For the Next C++

Talkat CppCon 2020 · 2020-09-14..09-18· [c-and-cpp]
slides:none on file

mp-units is a header-only C++20 library (release 0.6.0, available on Conan and Compiler Explorer) that encodes units as types to guarantee compile-time safety and human-friendly errors, supports SI/FPS/CGS and custom systems, and uses concepts, class-type NTTPs and quantity_cast for zero-overhead conversions. Benchmarks show fewer instructions than naive double code and often one division instead of extra converts, comparing favorably to Boost.Units and Nick Holthaus’s units. It prints formatted units, works with vector/matrix reps, and targets standardization (GCC10+/MSVC16.7).

AI-written summary · about

  1. 0:00Introduction to physical units
  2. 12:50Strong interfaces in the library
  3. 27:41Runtime performance comparison
  4. 39:21Framework basics and concepts
  5. 53:11C++20 concepts benefits
  6. 1:01:21Environment compatibility and next steps
~/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.