Skip to content

Commit 7e99986

Browse files
author
Ivan Karachun
committed
Small fix
Signed-off-by: Ivan Karachun <[email protected]>
1 parent 590ed41 commit 7e99986

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/include/CL/sycl/handler.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,10 @@ class __SYCL_EXPORT handler {
388388

389389
template <typename T> struct ShouldEnableSetArgHelper {
390390
static constexpr bool value = std::is_trivially_copyable<T>::value
391+
#ifdef CL_SYCL_LANGUAGE_VERSION
391392
#if CL_SYCL_LANGUAGE_VERSION <= 121
392393
&& std::is_standard_layout<T>::value
394+
#endif
393395
#endif
394396
;
395397
};

0 commit comments

Comments
 (0)