Explore the Boost.Units library for compile-time dimensional analysis and unit conversions in this 42-minute CppNow conference talk. Learn about dimensions, units, standard systems, and limitations of the library. Discover how to perform conversions, work with default conversions, and utilize quantities. Delve into metric prefixes, unit formats, and base units. Examine compiler and runtime performance considerations. Address common problems with libraries and functions, and see practical examples of Boost.Units in action. Gain insights into reducing programming errors by declaring precise value representations and enforcing meaningful operations.
Overview
Syllabus
Why use BoostUnits
Dimensions and Units
Dimensions
Units
Standard Systems
Limitations
Conversions
Default Conversion
Quantity
Metric prefixes
Unit formats
Prefixes
Base Units
Compiler Performance
Runtime Performance
Problems with Libraries
Problems with Functions
Example
Taught by
CppNow