refactor: quantity_point converting constructor simplified
This commit is contained in:
1 parent
4c2e288017
commit
0292048252
1 file changed
+1
-1
@@ -123,7 +123,7 @@ public:
|
||||
template<QuantityPointOf<absolute_point_origin> QP>
|
||||
requires std::constructible_from<quantity_type, typename QP::quantity_type>
|
||||
constexpr explicit(!std::convertible_to<typename QP::quantity_type, quantity_type>) quantity_point(const QP& qp) :
|
||||
q_(qp.relative() + QP::zero().absolute() - zero().absolute())
|
||||
q_(qp.absolute() - zero().absolute())
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user