Closed Lecrapouille closed 1 year ago
You're right the examples does no longer compile since release 2.5.0 which removed some implicit conversions.
At the moment the correct code would be
constexpr auto thousand_grams = one_kilogram.as<SI::gram_t<long double>>();
which is not that nice. Will try to fix it
The issue is fixed in this branch https://github.com/bernedom/SI/tree/feature/add-tests-for-as-conversion which will go in the next release.
Released with version 2.5.1.
Could be nice to explicitly say it is C++17 directly on the 1st line (else said on section "building & compat" which is far away).