Skip to content

Commit

Permalink
std::remove_cvref_t<T>
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin authored Mar 23, 2024
1 parent 27e3872 commit 0f41dc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion quantities/concepts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ concept real_affine_space = affine_space<V, double>;
// the former introduces ambiguities on Sign * Vector.
template<typename T>
concept convertible_to_quantity =
std::integral<T> || std::floating_point<T> ||
std::integral<std::remove_cvref_t<T>> ||
std::floating_point<std::remove_cvref_t<T>> ||
is_instance_of_v<Quantity, std::remove_cvref_t<T>>;

} // namespace internal
Expand Down

0 comments on commit 0f41dc0

Please sign in to comment.