xo-unit: use auto to elide a template arg to quantity
This commit is contained in:
parent
844bbca3de
commit
e37340f6c2
3 changed files with 62 additions and 55 deletions
|
|
@ -388,7 +388,9 @@ namespace xo {
|
|||
static_assert(rr.natural_unit_.n_bpu() == 1);
|
||||
|
||||
constexpr auto q1 = quantity<decltype(ms)::repr_type,
|
||||
#ifdef TYPE_INFERENCE_EXPERIMENT
|
||||
decltype(ms)::ratio_int_type,
|
||||
#endif
|
||||
rr.natural_unit_,
|
||||
decltype(ms)::ratio_int2x_type>(ms.scale() * ms.scale());
|
||||
|
||||
|
|
@ -441,7 +443,9 @@ namespace xo {
|
|||
static_assert(rr.natural_unit_.n_bpu() == 0);
|
||||
|
||||
constexpr auto q1 = quantity<decltype(ms)::repr_type,
|
||||
#ifdef TYPE_INFERENCE_EXPERIMENT
|
||||
decltype(ms)::ratio_int_type,
|
||||
#endif
|
||||
rr.natural_unit_,
|
||||
decltype(ms)::ratio_int2x_type>(ms.scale() * ms.scale());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue