mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-02 20:04:27 +02:00
feat: derived_XXX
are not constrained with SymbolicConstant
This commit is contained in:
@@ -52,7 +52,7 @@ import std;
|
|||||||
|
|
||||||
namespace mp_units {
|
namespace mp_units {
|
||||||
|
|
||||||
template<typename... Expr>
|
template<detail::SymbolicConstant... Expr>
|
||||||
struct derived_dimension;
|
struct derived_dimension;
|
||||||
|
|
||||||
MP_UNITS_EXPORT struct dimension_one;
|
MP_UNITS_EXPORT struct dimension_one;
|
||||||
@@ -165,7 +165,7 @@ struct base_dimension : detail::dimension_interface {
|
|||||||
* @note User should not instantiate this type! It is not exported from the C++ module. The library will
|
* @note User should not instantiate this type! It is not exported from the C++ module. The library will
|
||||||
* instantiate this type automatically based on the dimensional arithmetic equation provided by the user.
|
* instantiate this type automatically based on the dimensional arithmetic equation provided by the user.
|
||||||
*/
|
*/
|
||||||
template<typename... Expr>
|
template<detail::SymbolicConstant... Expr>
|
||||||
struct derived_dimension final : detail::dimension_interface, detail::derived_dimension_impl<Expr...> {};
|
struct derived_dimension final : detail::dimension_interface, detail::derived_dimension_impl<Expr...> {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -491,7 +491,7 @@ struct derived_quantity_spec_impl :
|
|||||||
* @note User should not instantiate this type! It is not exported from the C++ module. The library will
|
* @note User should not instantiate this type! It is not exported from the C++ module. The library will
|
||||||
* instantiate this type automatically based on the dimensional arithmetic equation provided by the user.
|
* instantiate this type automatically based on the dimensional arithmetic equation provided by the user.
|
||||||
*/
|
*/
|
||||||
template<typename... Expr>
|
template<detail::SymbolicConstant... Expr>
|
||||||
struct derived_quantity_spec final : detail::derived_quantity_spec_impl<Expr...> {};
|
struct derived_quantity_spec final : detail::derived_quantity_spec_impl<Expr...> {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -78,7 +78,7 @@ concept NamedQuantitySpec =
|
|||||||
|
|
||||||
} // namespace detail
|
} // namespace detail
|
||||||
|
|
||||||
template<typename... Expr>
|
template<detail::SymbolicConstant... Expr>
|
||||||
struct derived_quantity_spec;
|
struct derived_quantity_spec;
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
@@ -146,7 +146,7 @@ template<Unit From, Unit To>
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename... Expr>
|
template<detail::SymbolicConstant... Expr>
|
||||||
struct derived_unit;
|
struct derived_unit;
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
@@ -513,7 +513,7 @@ struct derived_unit_impl : detail::unit_interface, detail::expr_fractions<one, E
|
|||||||
* @note User should not instantiate this type! It is not exported from the C++ module. The library will
|
* @note User should not instantiate this type! It is not exported from the C++ module. The library will
|
||||||
* instantiate this type automatically based on the unit arithmetic equation provided by the user.
|
* instantiate this type automatically based on the unit arithmetic equation provided by the user.
|
||||||
*/
|
*/
|
||||||
template<typename... Expr>
|
template<detail::SymbolicConstant... Expr>
|
||||||
struct derived_unit final : detail::derived_unit_impl<Expr...> {};
|
struct derived_unit final : detail::derived_unit_impl<Expr...> {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user