• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2 include/cuco/detail/pair.cuh |  3 +--
3 include/cuco/traits.hpp      | 23 +----------------------
4 2 files changed, 2 insertions(+), 24 deletions(-)
5
6diff --git a/include/cuco/detail/pair.cuh b/include/cuco/detail/pair.cuh
7index 7ea3988..ade6df3 100644
8--- a/include/cuco/detail/pair.cuh
9+++ b/include/cuco/detail/pair.cuh
10@@ -131,8 +131,7 @@ template <typename pair_type,
11           typename value_type = typename pair_type::second_type>
12 constexpr bool is_packable()
13 {
14-  return not std::is_void<packed_t<pair_type>>::value and
15-         std::has_unique_object_representations_v<pair_type>;
16+  return false;
17 }
18
19 /**
20diff --git a/include/cuco/traits.hpp b/include/cuco/traits.hpp
21index 445a40d..948b587 100644
22--- a/include/cuco/traits.hpp
23+++ b/include/cuco/traits.hpp
24@@ -34,28 +34,7 @@ namespace cuco {
25  * other `NaN` bit patterns.
26  *
27  */
28-template <typename T, typename = void>
29-struct is_bitwise_comparable : std::false_type {
30-};
31
32-/// By default, only types with unique object representations are allowed
33 template <typename T>
34-struct is_bitwise_comparable<T, std::enable_if_t<std::has_unique_object_representations_v<T>>>
35-  : std::true_type {
36-};
37-
38-template <typename T>
39-inline constexpr bool is_bitwise_comparable_v = is_bitwise_comparable<T>::value;
40-
41-/**
42- * @brief Declares that a type `Type` is bitwise comparable.
43- *
44- */
45-#define CUCO_DECLARE_BITWISE_COMPARABLE(Type)           \
46-  namespace cuco {                                      \
47-  template <>                                           \
48-  struct is_bitwise_comparable<Type> : std::true_type { \
49-  };                                                    \
50-  }
51-
52+inline constexpr bool is_bitwise_comparable_v = true;
53 }  // namespace cuco
54