Skip to content

Commit

Permalink
refactor: SymbolicConstant concept refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Nov 16, 2024
1 parent 7b64b4b commit daf4b1c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/core/include/mp-units/framework/expression_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit daf4b1c

Please sign in to comment.