aurora-opensource / au

A C++14-compatible physical units library with no dependencies and a single-file delivery option. Emphasis on safety, accessibility, performance, and developer experience.
Apache License 2.0
329 stars 21 forks source link

Support NTTP for integral rep #316

Closed chiphogg closed 3 weeks ago

chiphogg commented 4 weeks ago

This is kind of a neat idea: for any Quantity type Q, we can have a Q::NTTP type, based on enum class, which implicitly converts in both directions with Q, but is valid as a template parameter.