Skip to content

Commit 2368a69

Browse files
committed
DELME
1 parent b9cef21 commit 2368a69

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/cuda/api/memory.hpp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,29 @@ inline void copy(span<T> destination, const T(&source)[N], optional_ref<const st
632632
return copy(destination.data(), source, sizeof(T) * N);
633633
}
634634

635+
template <typename T, size_t N>
636+
void foo(T(&destination)[N])
637+
{
638+
(void) destination;
639+
return;
640+
}
641+
642+
template <>
643+
void foo<int, 10>(int(&destination)[10]);
644+
645+
template <typename T, size_t N>
646+
void foo2(span<T const> source) { }
647+
648+
template<>
649+
void foo2<int, 10>(span<int const> source);
650+
651+
template <typename T, size_t N>
652+
void foo3(T(&destination)[N], span<T const> source) {}
653+
654+
template <>
655+
void foo3<int, 10>(int(&destination)[10], span<int const> source);
656+
657+
635658
/**
636659
* Copy the contents of a span into a C-style array
637660
*

0 commit comments

Comments
 (0)