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.