Skip to content

Commit

Permalink
feat: per and power made final
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Nov 9, 2024
1 parent b481008 commit a628f1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/include/mp-units/framework/expression_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ struct type_list {};
* @note Can't be empty
*/
template<detail::SymbolicArg T, detail::SymbolicArg... Ts>
struct per {};
struct per final {};

namespace detail {

Expand Down Expand Up @@ -118,7 +118,7 @@ constexpr bool ratio_one<N, N> = true;
*/
template<detail::SymbolicArg F, int Num, int... Den>
requires(detail::valid_ratio<Num, Den...> && detail::positive_ratio<Num, Den...> && !detail::ratio_one<Num, Den...>)
struct power {
struct power final {
using factor = F;
static constexpr detail::ratio exponent{Num, Den...};
};
Expand Down

0 comments on commit a628f1d

Please sign in to comment.