File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
sycl/include/CL/sycl/INTEL Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ namespace INTEL {
18
18
// Returns a registered copy of the input
19
19
// This function is intended for FPGA users to instruct the compiler to insert
20
20
// at least one register stage between the input and the return value.
21
- template <typename _T>
22
- typename std::enable_if<std:: is_trivially_copyable<_T>::value, _T>::type
23
- fpga_reg (_T t) {
21
+ template <typename _T> _T fpga_reg (_T t) {
22
+ static_assert ( std::is_trivially_copyable<_T>::value,
23
+ " Type is not trivially_copyable. " );
24
24
#if __has_builtin(__builtin_intel_fpga_reg)
25
25
return __builtin_intel_fpga_reg (t);
26
26
#else
@@ -31,4 +31,3 @@ fpga_reg(_T t) {
31
31
} // namespace INTEL
32
32
} // namespace sycl
33
33
} // __SYCL_INLINE_NAMESPACE(cl)
34
-
You can’t perform that action at this time.
0 commit comments