Skip to content

Commit 03f3010

Browse files
[SYCL] Fix template argument deduction ambiguities (#5464)
Explicit declaration of range to avoid template resolution ambiguities. Signed-off-by: Chris Perkins <[email protected]>
1 parent c510c88 commit 03f3010

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/include/CL/sycl/buffer.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,10 @@ class buffer {
235235
propList,
236236
make_unique_ptr<detail::SYCLMemObjAllocatorHolder<AllocatorT>>(
237237
allocator));
238+
size_t r[3] = {Range[0], 0, 0};
238239
impl->constructorNotification(CodeLoc, (void *)impl.get(), &*first,
239240
(const void *)typeid(T).name(), dimensions,
240-
sizeof(T), {Range[0], 0, 0});
241+
sizeof(T), r);
241242
}
242243

243244
template <class InputIterator, int N = dimensions,

0 commit comments

Comments
 (0)