From 22de81344d93f46d42632f10827648ee31f7cf52 Mon Sep 17 00:00:00 2001 From: Artur Gainullin Date: Thu, 22 Sep 2022 15:49:24 -0700 Subject: [PATCH] [SYCL] Resolve min/max conflict --- sycl/include/sycl/accessor.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sycl/include/sycl/accessor.hpp b/sycl/include/sycl/accessor.hpp index 7cbcbb0773ef9..bb25c37d60ca0 100644 --- a/sycl/include/sycl/accessor.hpp +++ b/sycl/include/sycl/accessor.hpp @@ -1877,7 +1877,7 @@ class __SYCL_SPECIAL_CLASS __SYCL_TYPE(accessor) accessor : size_t byte_size() const noexcept { return size() * sizeof(DataT); } size_t max_size() const noexcept { - return std::numeric_limits::max(); + return (std::numeric_limits::max)(); } bool empty() const noexcept { return size() == 0; } @@ -2574,7 +2574,7 @@ class __SYCL_SPECIAL_CLASS __SYCL_TYPE(local_accessor) local_accessor size_t byte_size() const noexcept { return this->size() * sizeof(DataT); } size_t max_size() const noexcept { - return std::numeric_limits::max(); + return (std::numeric_limits::max)(); } bool empty() const noexcept { return this->size() == 0; }