mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-02 11:54:27 +02:00
refactor: point origin can't be set for a unit that does not have an associated quantity kind
This commit is contained in:
@@ -153,13 +153,6 @@ struct named_unit<Symbol> {
|
|||||||
static constexpr auto symbol = Symbol; ///< Unique base unit identifier
|
static constexpr auto symbol = Symbol; ///< Unique base unit identifier
|
||||||
};
|
};
|
||||||
|
|
||||||
template<basic_symbol_text Symbol, PointOrigin auto PO>
|
|
||||||
requires(!Symbol.empty())
|
|
||||||
struct named_unit<Symbol, PO> {
|
|
||||||
static constexpr auto symbol = Symbol; ///< Unique base unit identifier
|
|
||||||
static constexpr auto point_origin = PO;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Specialization for a unit with special name
|
* @brief Specialization for a unit with special name
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user