mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 20:34:26 +02:00
refactor: SymbolicConstant
concept refactored
This commit is contained in:
@@ -48,11 +48,8 @@ template<typename T>
|
||||
concept SymbolicArg = (!std::is_const_v<T>) && (!std::is_reference_v<T>);
|
||||
|
||||
template<typename T>
|
||||
concept SymbolicConstant = SymbolicArg<T> && std::is_empty_v<T> && std::is_trivial_v<T> &&
|
||||
#if !MP_UNITS_COMP_GCC || MP_UNITS_COMP_GCC > 12
|
||||
std::semiregular<T> &&
|
||||
#endif
|
||||
std::is_final_v<T>;
|
||||
concept SymbolicConstant = SymbolicArg<T> && std::is_empty_v<T> && std::is_final_v<T> && std::is_trivial_v<T> &&
|
||||
std::is_trivially_copy_constructible_v<T> && std::is_trivially_move_constructible_v<T>;
|
||||
|
||||
/**
|
||||
* @brief Type list type used by the expression template framework
|
||||
|
Reference in New Issue
Block a user