Skip to content

Commit

Permalink
traits
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Jul 15, 2024
1 parent 011914c commit 3c79fb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/ylt/reflection/member_count.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ concept optional = requires(Type optional) {
optional.value();
optional.has_value();
optional.operator*();
typename std::remove_cvref_t<Type>::value_type;
typename remove_cvref_t<Type>::value_type;
};
#else
template <typename T, typename = void>
Expand Down Expand Up @@ -129,7 +129,7 @@ inline constexpr std::size_t members_count_impl() {

template <typename T>
inline constexpr std::size_t members_count() {
using type = std::remove_cvref_t<T>;
using type = remove_cvref_t<T>;
if constexpr (internal::tuple_size<type>) {
return std::tuple_size<type>::value;
}
Expand Down

0 comments on commit 3c79fb2

Please sign in to comment.