Skip to content

Commit ce11646

Browse files
authored
[SYCL] Resolve min/max conflict (#6861)
Resolve min/max conflict in the same way as it was done here: #1339 Needed to fix this failure: https://github.com/intel/llvm/actions/runs/3107743966/jobs/5036187282
1 parent 38fd5c7 commit ce11646

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/include/sycl/accessor.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1877,7 +1877,7 @@ class __SYCL_SPECIAL_CLASS __SYCL_TYPE(accessor) accessor :
18771877
size_t byte_size() const noexcept { return size() * sizeof(DataT); }
18781878

18791879
size_t max_size() const noexcept {
1880-
return std::numeric_limits<difference_type>::max();
1880+
return (std::numeric_limits<difference_type>::max)();
18811881
}
18821882

18831883
bool empty() const noexcept { return size() == 0; }
@@ -2574,7 +2574,7 @@ class __SYCL_SPECIAL_CLASS __SYCL_TYPE(local_accessor) local_accessor
25742574
size_t byte_size() const noexcept { return this->size() * sizeof(DataT); }
25752575

25762576
size_t max_size() const noexcept {
2577-
return std::numeric_limits<difference_type>::max();
2577+
return (std::numeric_limits<difference_type>::max)();
25782578
}
25792579

25802580
bool empty() const noexcept { return this->size() == 0; }

0 commit comments

Comments
 (0)