Skip to content

Commit 76e20b6

Browse files
committed
Revert "[SYCL] use output type to check in assert"
This reverts commit f3b026a.
1 parent f3b026a commit 76e20b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sycl/include/sycl/group_algorithm.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -953,8 +953,8 @@ joint_exclusive_scan(Group g, InPtr first, InPtr last, OutPtr result,
953953
std::is_same_v<BinaryOperation, sycl::logical_and<binary_op_t>>)
954954
? std::is_same_v<decltype(binary_op(binary_op_t(), binary_op_t())),
955955
bool>
956-
: std::is_same_v<decltype(binary_op(*first, *first)),
957-
typename detail::remove_pointer<OutPtr>::type>,
956+
: std::is_same_v<decltype(binary_op(binary_op_t(), binary_op_t())),
957+
binary_op_t>,
958958
"Result type of binary_op must match scan accumulation type.");
959959
#else
960960
static_assert(std::is_same_v<decltype(binary_op(*first, *first)),
@@ -1184,8 +1184,8 @@ joint_inclusive_scan(Group g, InPtr first, InPtr last, OutPtr result,
11841184
std::is_same_v<BinaryOperation, sycl::logical_and<binary_op_t>>)
11851185
? std::is_same_v<decltype(binary_op(binary_op_t(), binary_op_t())),
11861186
bool>
1187-
: std::is_same_v<decltype(binary_op(*first, *first)),
1188-
typename detail::remove_pointer<OutPtr>::type>,
1187+
: std::is_same_v<decltype(binary_op(binary_op_t(), binary_op_t())),
1188+
binary_op_t>,
11891189
"Result type of binary_op must match scan accumulation type.");
11901190
#else
11911191
static_assert(std::is_same_v<decltype(binary_op(*first, *first)),

0 commit comments

Comments
 (0)