C++ lib for handling SI units

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/cpp_questions

Our great sponsors
  • Sonar - Write Clean C++ Code. Always.
  • InfluxDB - Access the most powerful time series database as a service
  • SaaSHub - Software Alternatives and Reviews
  • SI

    A header only C++ library that provides type safety and user defined literals for physical units

  • UNITS

    a compile-time, header-only, dimensional analysis and unit conversion library built on c++14 with no dependencies.

    I personally use, and recommend, the units library by Holthaus: https://github.com/nholthaus/units

  • Sonar

    Write Clean C++ Code. Always.. Sonar helps you commit clean C++ code every time. With over 550 unique rules to find C++ bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • units

    A compile-time enabled Modern C++ library that provides compile-time dimensional analysis and unit/quantity manipulation. (by mpusz)

    This seems to be on a progress to standardisation for c++23/26: https://github.com/mpusz/units

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts