Skip to content

Commit

Permalink
Relax requirements on type matching
Browse files Browse the repository at this point in the history
  • Loading branch information
aprokop committed Apr 11, 2024
1 parent b257854 commit 2df3a20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions src/ArborX_BruteForce.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,8 @@ class BruteForce
else if constexpr (!Details::is_pair_value_index_v<value_type>)
return false;
else
{
return std::is_same_v<typename std::decay_t<CallbackOrView>::value_type,
typename value_type::index_type>;
}
return std::is_integral_v<
typename std::decay_t<CallbackOrView>::value_type>;
}();

if constexpr (use_convenient_shortcut)
Expand Down
6 changes: 2 additions & 4 deletions src/ArborX_LinearBVH.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ class BoundingVolumeHierarchy
else if constexpr (!Details::is_pair_value_index_v<value_type>)
return false;
else
{
return std::is_same_v<typename std::decay_t<CallbackOrView>::value_type,
typename value_type::index_type>;
}
return std::is_integral_v<
typename std::decay_t<CallbackOrView>::value_type>;
}();

if constexpr (use_convenient_shortcut)
Expand Down

0 comments on commit 2df3a20

Please # to comment.