diff --git a/src/core/include/mp-units/quantity_point.h b/src/core/include/mp-units/quantity_point.h index c6788e5b..fb906dda 100644 --- a/src/core/include/mp-units/quantity_point.h +++ b/src/core/include/mp-units/quantity_point.h @@ -150,7 +150,8 @@ public: auto q = absolute() - origin.quantity_point.absolute(); return quantity_point(std::move(q)); } else { - return quantity_point(absolute()); + auto q = absolute(); + return quantity_point(std::move(q)); } }