From b7fff15bfbad16ce38a3281b3a4e4c5bc2c68888 Mon Sep 17 00:00:00 2001 From: Zerg1996 Date: Fri, 7 Oct 2022 23:20:52 +0200 Subject: [PATCH] Type traits update #40 --- include/nil/crypto3/detail/type_traits.hpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/include/nil/crypto3/detail/type_traits.hpp b/include/nil/crypto3/detail/type_traits.hpp index 965b77d49e..b8022425e6 100644 --- a/include/nil/crypto3/detail/type_traits.hpp +++ b/include/nil/crypto3/detail/type_traits.hpp @@ -135,16 +135,11 @@ namespace nil { template struct is_codec { - static const bool value = has_type_encoded_value_type::value && - has_static_member_data_encoded_value_bits::value && - has_type_decoded_value_type::value && - has_static_member_data_decoded_value_bits::value && - has_type_encoded_block_type::value && - has_static_member_data_encoded_block_bits::value && - has_type_decoded_block_type::value && - has_static_member_data_decoded_block_bits::value && - has_member_function_encode::value && - has_member_function_decode::value; + static const bool value = has_encoded_value_type::value && has_encoded_value_bits::value && + has_decoded_value_type::value && has_decoded_value_bits::value && + has_encoded_block_type::value && has_encoded_block_bits::value && + has_decoded_block_type::value && has_decoded_block_bits::value && + has_encode::value && has_decode::value; typedef T type; };