diff --git a/include/boost/circular_buffer/base.hpp b/include/boost/circular_buffer/base.hpp index ea1f26c..c9cd5ce 100644 --- a/include/boost/circular_buffer/base.hpp +++ b/include/boost/circular_buffer/base.hpp @@ -679,7 +679,7 @@ public: \sa size(), capacity() */ size_type max_size() const { - return std::min(m_alloc.max_size(), std::numeric_limits::max()); + return std::min(m_alloc.max_size(), (std::numeric_limits::max)()); } //! Is the circular_buffer empty?