@@ -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