As Olaf observed, code like this does not work:
Meters org_gap{ original_gap_*1_mm };
if (gul14::within_abs(gap_mm, org_gap, 0.1_mm)) ...
... despite the fact that the Meters class has all the behavior of a common double. Maybe we can allow custom types. I wish we had concepts. :)
As Olaf observed, code like this does not work:
Meters org_gap{ original_gap_*1_mm }; if (gul14::within_abs(gap_mm, org_gap, 0.1_mm)) ...... despite the fact that the
Metersclass has all the behavior of a commondouble. Maybe we can allow custom types. I wish we had concepts. :)