Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit beab345

Browse files
authored
Merge pull request #41 from NilFoundation/40-type-traits-update
2 parents f3a8433 + b7fff15 commit beab345

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

include/nil/crypto3/detail/type_traits.hpp

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -135,16 +135,11 @@ namespace nil {
135135

136136
template<typename T>
137137
struct is_codec {
138-
static const bool value = has_type_encoded_value_type<T>::value &&
139-
has_static_member_data_encoded_value_bits<T, const std::size_t>::value &&
140-
has_type_decoded_value_type<T>::value &&
141-
has_static_member_data_decoded_value_bits<T, const std::size_t>::value &&
142-
has_type_encoded_block_type<T>::value &&
143-
has_static_member_data_encoded_block_bits<T, const std::size_t>::value &&
144-
has_type_decoded_block_type<T>::value &&
145-
has_static_member_data_decoded_block_bits<T, const std::size_t>::value &&
146-
has_member_function_encode<T, typename T::block_type>::value &&
147-
has_member_function_decode<T, typename T::block_type>::value;
138+
static const bool value = has_encoded_value_type<T>::value && has_encoded_value_bits<T>::value &&
139+
has_decoded_value_type<T>::value && has_decoded_value_bits<T>::value &&
140+
has_encoded_block_type<T>::value && has_encoded_block_bits<T>::value &&
141+
has_decoded_block_type<T>::value && has_decoded_block_bits<T>::value &&
142+
has_encode<T>::value && has_decode<T>::value;
148143
typedef T type;
149144
};
150145

0 commit comments

Comments
 (0)