xo-unit: test: verify natural_unit/scaled_unit is structural type
This commit is contained in:
parent
9350f017b1
commit
a7af978e50
6 changed files with 84 additions and 5 deletions
|
|
@ -24,9 +24,9 @@ namespace xo {
|
|||
{}
|
||||
|
||||
constexpr scaled_unit reciprocal() const {
|
||||
return scaled_unit(nu_reciprocal(natural_unit_,
|
||||
1 / outer_scale_factor_,
|
||||
1.0 / outer_scale_sq_));
|
||||
return scaled_unit(natural_unit_.reciprocal(),
|
||||
1 / outer_scale_factor_,
|
||||
1.0 / outer_scale_sq_);
|
||||
}
|
||||
|
||||
natural_unit<Int> natural_unit_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue