Skip to content

Commit 3cb2e1e

Browse files
[SYCL] Add workaround for VS2019 to fix test/regression/bit_cast_win.cpp (#9242)
We use VS2019 in CI pipeline internally and #9183 and caused a regression. This PR fixes it.
1 parent 13a5baf commit 3cb2e1e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sycl/include/sycl/accessor.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,9 @@ class __SYCL_EBO __SYCL_SPECIAL_CLASS __SYCL_TYPE(accessor) accessor :
13581358
typename... PropTypes,
13591359
typename std::enable_if_t<
13601360
detail::IsCxPropertyList<PropertyListT>::value &&
1361-
std::is_same_v<T, DataT> && Dims == 0 &&
1361+
// VS2019 can't compile sycl/test/regression/bit_cast_win.cpp
1362+
// if std::is_same_v is used here.
1363+
std::is_same<T, DataT>::value && Dims == 0 &&
13621364
(IsHostBuf || IsHostTask || (IsGlobalBuf || IsConstantBuf))> * =
13631365
nullptr>
13641366
accessor(

0 commit comments

Comments
 (0)