Skip to content

Commit 8b27ee2

Browse files
[SYCL] Don't include type_traits.hpp explicitly from buffer.hpp (#13916)
Right now it's a no-op/NFC as it is still included transitively somewhere, but in my local prototype workspace this `remove_pointer_t` is latest use of it there. I think it's OK to upload this PR right now to decrease number of out-of-tree changes in my experimental branch.
1 parent 7460245 commit 8b27ee2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sycl/include/sycl/buffer.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include <sycl/detail/property_helper.hpp>
2323
#include <sycl/detail/stl_type_traits.hpp>
2424
#include <sycl/detail/sycl_mem_obj_allocator.hpp>
25-
#include <sycl/detail/type_traits.hpp>
2625
#include <sycl/event.hpp>
2726
#include <sycl/exception.hpp>
2827
#include <sycl/ext/oneapi/accessor_property_list.hpp>
@@ -180,7 +179,7 @@ class buffer : public detail::buffer_plain,
180179
template <class Container>
181180
using EnableIfContiguous =
182181
std::void_t<std::enable_if_t<std::is_convertible_v<
183-
detail::remove_pointer_t<
182+
std::remove_pointer_t<
184183
decltype(std::declval<Container>().data())> (*)[],
185184
const T (*)[]>>,
186185
decltype(std::declval<Container>().size())>;

0 commit comments

Comments
 (0)