refactor: make_quantity_point declaration moved to a concept header file
This commit is contained in:
1 parent
e8fada662c
commit
ab3f75d3e0
2 files changed
+4
-4
No files matched your search
@@ -110,6 +110,10 @@ template<Reference auto R, PointOriginFor<get_quantity_spec(R)> auto PO,
|
||||
RepresentationOf<get_quantity_spec(R).character> Rep>
|
||||
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 {
|
||||
|
||||
template<auto R, auto PO, typename Rep>
|
||||
|
||||
@@ -29,10 +29,6 @@
|
||||
|
||||
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>
|
||||
struct absolute_point_origin {
|
||||
static constexpr QuantitySpec auto quantity_spec = QS;
|
||||
|
||||
Reference in new issue
Block a user