mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 21:24:27 +02:00
refactor: make_quantity_point
declaration moved to a concept header file
This commit is contained in:
@@ -110,6 +110,10 @@ template<Reference auto R, PointOriginFor<get_quantity_spec(R)> auto PO,
|
|||||||
RepresentationOf<get_quantity_spec(R).character> Rep>
|
RepresentationOf<get_quantity_spec(R).character> Rep>
|
||||||
class quantity_point;
|
class quantity_point;
|
||||||
|
|
||||||
|
template<PointOrigin auto PO, Quantity Q>
|
||||||
|
requires ReferenceOf<std::remove_const_t<decltype(Q::reference)>, PO.quantity_spec>
|
||||||
|
[[nodiscard]] constexpr quantity_point<Q::reference, PO, typename Q::rep> make_quantity_point(Q&& q);
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
template<auto R, auto PO, typename Rep>
|
template<auto R, auto PO, typename Rep>
|
||||||
|
@@ -29,10 +29,6 @@
|
|||||||
|
|
||||||
namespace mp_units {
|
namespace mp_units {
|
||||||
|
|
||||||
template<PointOrigin auto PO, Quantity Q>
|
|
||||||
requires ReferenceOf<std::remove_const_t<decltype(Q::reference)>, PO.quantity_spec>
|
|
||||||
[[nodiscard]] constexpr quantity_point<Q::reference, PO, typename Q::rep> make_quantity_point(Q&& q);
|
|
||||||
|
|
||||||
template<QuantitySpec auto QS>
|
template<QuantitySpec auto QS>
|
||||||
struct absolute_point_origin {
|
struct absolute_point_origin {
|
||||||
static constexpr QuantitySpec auto quantity_spec = QS;
|
static constexpr QuantitySpec auto quantity_spec = QS;
|
||||||
|
Reference in New Issue
Block a user