xo-unit: rename scaled_unit o/load of rescale() -> rescale_ext()

This commit is contained in:
Roland Conybeare 2024-05-03 21:36:51 -04:00
commit 4263144614
3 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ main () {
static_assert(a.scale() == 0.625);
static_assert(a.abbrev() == flatstring("km.min^-2"));
constexpr auto a2 = a.rescale<(su::meter / (su::second * su::second))>();
constexpr auto a2 = a.rescale_ext<(su::meter / (su::second * su::second))>();
cerr << "d.t^-2: " << a2 << endl;

View file

@ -24,7 +24,7 @@ main () {
<< ", d.t^-2: " << a
<< endl;
constexpr auto a2 = a.template rescale<su::meter / (su::second * su::second)>();
constexpr auto a2 = a.rescale_ext<su::meter / (su::second * su::second)>();
static_assert(a2.abbrev() == flatstring("m.s^-2"));

View file

@ -76,7 +76,7 @@ namespace xo {
template <scaled_unit<Int> ScaledUnit2>
constexpr
auto rescale() const {
auto rescale_ext() const {
/* conversion factor from .unit -> unit2*/
auto rr = detail::su_ratio<ratio_int_type,
ratio_int2x_type>(NaturalUnit, ScaledUnit2.natural_unit_);