Update no_duplicate_field_names.hpp

This commit is contained in:
Lixin Wei
2023-12-17 20:04:46 +08:00
committed by GitHub
parent cdcf37453c
commit 75ebc0e897
@@ -8,7 +8,7 @@ namespace internal {
template <class Fields, int _i = 1, int _j = 0>
constexpr inline bool no_duplicate_field_names() {
constexpr auto num_fields = std::tuple_size<Fields>{};
constexpr auto num_fields = std::tuple_size_v<Fields>;
if constexpr (num_fields <= 1) {
return true;