diff --git a/sycl/include/sycl/detail/common.hpp b/sycl/include/sycl/detail/common.hpp index a8c94e32d81c6..5a6fd5472615f 100644 --- a/sycl/include/sycl/detail/common.hpp +++ b/sycl/include/sycl/detail/common.hpp @@ -8,16 +8,16 @@ #pragma once +#include // for array +#include // for assert +#include // for size_t +#include // for allocator, operator+ #include // for __SYCL_ALWAYS_INLINE #include // for __SYCL_EXPORT #include // for pi_int32 - -#include // for array -#include // for assert -#include // for size_t -#include // for allocator, operator+ -#include // for enable_if_t -#include // for index_sequence, make_i... +#include // for is_output_iteratior +#include // for enable_if_t +#include // for index_sequence, make_i... // Default signature enables the passing of user code location information to // public methods as a default argument. @@ -25,17 +25,15 @@ namespace sycl { inline namespace _V1 { namespace detail { -// The check for output iterator is commented out as it blocks set_final_data -// with void * argument to be used. -// TODO: Align these checks with the SYCL specification when the behaviour -// with void * is clarified. template -using EnableIfOutputPointerT = std::enable_if_t< - /*is_output_iterator::value &&*/ std::is_pointer_v>; +using EnableIfOutputPointerT = + std::enable_if_t::value && + std::is_pointer_v>; template -using EnableIfOutputIteratorT = std::enable_if_t< - /*is_output_iterator::value &&*/ !std::is_pointer_v>; +using EnableIfOutputIteratorT = + std::enable_if_t::value && + !std::is_pointer_v>; #if !defined(NDEBUG) && (_MSC_VER > 1929 || __has_builtin(__builtin_FILE)) #define __CODELOC_FILE_NAME __builtin_FILE()