diff --git a/crypto3/libs/marshalling/core/include/nil/detail/type_traits.hpp b/crypto3/libs/marshalling/core/include/nil/detail/type_traits.hpp index e6c1775961..f1e7c38a9c 100644 --- a/crypto3/libs/marshalling/core/include/nil/detail/type_traits.hpp +++ b/crypto3/libs/marshalling/core/include/nil/detail/type_traits.hpp @@ -209,12 +209,13 @@ namespace nil::crypto3 { namespace detail { - GENERATE_HAS_MEMBER_TYPE(iterator) - GENERATE_HAS_MEMBER_TYPE(const_iterator) +// GENERATE_HAS_MEMBER_TYPE(iterator) +// GENERATE_HAS_MEMBER_TYPE(const_iterator) - GENERATE_HAS_MEMBER_CONST_RETURN_FUNCTION(begin, const_iterator) - GENERATE_HAS_MEMBER_CONST_RETURN_FUNCTION(end, const_iterator) +// GENERATE_HAS_MEMBER_CONST_RETURN_FUNCTION(begin, const_iterator) +// GENERATE_HAS_MEMBER_CONST_RETURN_FUNCTION(end, const_iterator) + /* template struct is_iterator { static char test(...); @@ -227,18 +228,22 @@ namespace nil::crypto3 { static long test(U &&); constexpr static bool value = std::is_same())), long>::value; - }; + };*/ + /* template struct is_range { static const bool value = has_begin::value && has_end::value; }; + */ + /* template struct is_container { static const bool value = has_const_iterator::value && has_begin::value && has_end::value; }; + */ /// @brief Check whether provided type is a variant of /// std::tuple. diff --git a/crypto3/libs/marshalling/core/include/nil/marshalling/processing/tuple.hpp b/crypto3/libs/marshalling/core/include/nil/marshalling/processing/tuple.hpp index 12bf930f09..992278bd7b 100644 --- a/crypto3/libs/marshalling/core/include/nil/marshalling/processing/tuple.hpp +++ b/crypto3/libs/marshalling/core/include/nil/marshalling/processing/tuple.hpp @@ -47,7 +47,7 @@ namespace nil::crypto3 { template struct tuple_as_aligned_union { /// @cond DOCUMENT_STATIC_ASSERT - static_assert(nil::crypto3::detail::is_tuple::value, "TTuple must be std::tuple"); + static_assert(::nil::crypto3::detail::is_tuple::value, "TTuple must be std::tuple"); /// @endcond /// @brief Type definition is invalid for any type that is not