mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 12:54:25 +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();
|
auto q = absolute() - origin.quantity_point.absolute();
|
||||||
return quantity_point<reference, NewPO{}, typename decltype(q)::rep>(std::move(q));
|
return quantity_point<reference, NewPO{}, typename decltype(q)::rep>(std::move(q));
|
||||||
} else {
|
} 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