mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 04:44:27 +02:00
fix: point_from()
now returns a point with a proper representation type
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user