“Boost Units Library for Correct Code"
summary
Shows the Boost.Units library delivering zero runtime dimensional checks and automatic unit conversion in C++ so expressions carry real physical types, using quantity types and the library’s static factory (e.g. quantity::from_value) to initialize values. Compiles catch mistakes (divide vs multiply) and the library generates derived units and lets you add custom units like fuel consumption_rate (m^3/s) and conversions to gallons/minute, but implicit unit casts fail by design so conversions require static_cast, docs are exhaustive yet hard to follow.
AI-written summary · about
chapters (13)
- 0:00Introduction to Boost Units
- 2:54Simple Manual Type Checking
- 5:53Implementing Manual Checking
- 10:59Introduction to Boost Units
- 14:18Using the Units Library
- 19:14Library Core Concepts
- 22:47Quantity Initialization
- 30:31Real-world Disaster Analysis
- 32:31Unit Conversion Details
- 41:11Library Benefits and Limitations
- 47:39Documentation Challenges
- 52:55Creating Custom Units
- 58:00Future Development and Q&A
related talks
01h 02mA Physical Units Library For C++
01h 31mImproving Our Safety With a Modern C++ Quantities and Units Library
01h 05mA C++ Approach to Physical Units
58mSimplify and Secure Equation Systems with Type-Driven Development
58mSoftware Engineering Is About Tradeoffs
33mThe IT Path to Universal Measurement
01h 01mRethinking the Way We Do Templates in C++
41m“Avoiding Disasters with Strongly Typed C++”
