Skip to content

Commit

Permalink
wip [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
vo-nil committed Dec 12, 2024
1 parent ebe1bf1 commit 8086247
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions crypto3/libs/marshalling/core/include/nil/detail/type_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<typename T>
struct is_iterator {
static char test(...);
Expand All @@ -227,18 +228,22 @@ namespace nil::crypto3 {
static long test(U &&);
constexpr static bool value = std::is_same<decltype(test(std::declval<T>())), long>::value;
};
};*/

/*
template<typename Range>
struct is_range {
static const bool value = has_begin<Range>::value && has_end<Range>::value;
};
*/

/*
template<typename Container>
struct is_container {
static const bool value
= has_const_iterator<Container>::value && has_begin<Container>::value && has_end<Container>::value;
};
*/

/// @brief Check whether provided type is a variant of
/// <a href="http://en.cppreference.com/w/cpp/utility/tuple">std::tuple</a>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace nil::crypto3 {
template<typename TTuple>
struct tuple_as_aligned_union {
/// @cond DOCUMENT_STATIC_ASSERT
static_assert(nil::crypto3::detail::is_tuple<TTuple>::value, "TTuple must be std::tuple");
static_assert(::nil::crypto3::detail::is_tuple<TTuple>::value, "TTuple must be std::tuple");
/// @endcond

/// @brief Type definition is invalid for any type that is not
Expand Down

0 comments on commit 8086247

Please sign in to comment.