forked from mpusz/mp-units
refactor: explicit
cleanup for deduction guides of quantity
and quantity_point
This commit is contained in:
@@ -640,7 +640,7 @@ public:
|
||||
|
||||
// CTAD
|
||||
template<Representation Value, Reference R>
|
||||
explicit(false) quantity(Value v, R) -> quantity<R{}, Value>;
|
||||
quantity(Value v, R) -> quantity<R{}, Value>;
|
||||
|
||||
template<Representation Value>
|
||||
explicit(false) quantity(Value) -> quantity<one, Value>;
|
||||
|
@@ -546,7 +546,7 @@ public:
|
||||
|
||||
// CTAD
|
||||
template<Quantity Q>
|
||||
quantity_point(Q q) -> quantity_point<Q::reference, default_point_origin(Q::reference), typename Q::rep>;
|
||||
explicit quantity_point(Q q) -> quantity_point<Q::reference, default_point_origin(Q::reference), typename Q::rep>;
|
||||
|
||||
template<Quantity Q, PointOriginFor<Q::quantity_spec> PO>
|
||||
quantity_point(Q q, PO) -> quantity_point<Q::reference, PO{}, typename Q::rep>;
|
||||
|
Reference in New Issue
Block a user