fix: point_from() now returns a point with a proper representation type

This commit is contained in:
Mateusz Pusz committed 2023-08-15 11:15:20 +02:00
1 parent caab43cd25
commit eb28aa8f8c
1 file changed
+2 -1
+2 -1
View File
@@ -150,7 +150,8 @@ public:
auto q = absolute() - origin.quantity_point.absolute();
return quantity_point<reference, NewPO{}, typename decltype(q)::rep>(std::move(q));
} else {
return quantity_point<reference, NewPO{}, Rep>(absolute());
auto q = absolute();
return quantity_point<reference, NewPO{}, typename decltype(q)::rep>(std::move(q));
}
}