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
|
// CTAD
|
||||||
template<Representation Value, Reference R>
|
template<Representation Value, Reference R>
|
||||||
explicit(false) quantity(Value v, R) -> quantity<R{}, Value>;
|
quantity(Value v, R) -> quantity<R{}, Value>;
|
||||||
|
|
||||||
template<Representation Value>
|
template<Representation Value>
|
||||||
explicit(false) quantity(Value) -> quantity<one, Value>;
|
explicit(false) quantity(Value) -> quantity<one, Value>;
|
||||||
|
@@ -546,7 +546,7 @@ public:
|
|||||||
|
|
||||||
// CTAD
|
// CTAD
|
||||||
template<Quantity Q>
|
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>
|
template<Quantity Q, PointOriginFor<Q::quantity_spec> PO>
|
||||||
quantity_point(Q q, PO) -> quantity_point<Q::reference, PO{}, typename Q::rep>;
|
quantity_point(Q q, PO) -> quantity_point<Q::reference, PO{}, typename Q::rep>;
|
||||||
|
Reference in New Issue
Block a user