From d2c500448701a1f60a765ccd7943bdd11550bf3e Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 24 Aug 2021 14:24:01 +0200 Subject: [PATCH] Fixed call of max() on MSVC compiler Fixed call of max() on MSVC compiler --- thrust/mr/allocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thrust/mr/allocator.h b/thrust/mr/allocator.h index 31665c22e..1ad3be48d 100644 --- a/thrust/mr/allocator.h +++ b/thrust/mr/allocator.h @@ -98,7 +98,7 @@ class allocator : private validator __host__ __device__ size_type max_size() const { - return std::numeric_limits::max() / sizeof(T); + return (std::numeric_limits::max)() / sizeof(T); } /*! Constructor.