From 220b7f0c2ae1a43a079ab00a81016014bc3facda Mon Sep 17 00:00:00 2001 From: Jan Gaspar Date: Mon, 18 Dec 2006 00:43:52 +0000 Subject: [PATCH] MSVC 2005 specific fix for std::num_limits<>::max function [SVN r3531] --- include/boost/circular_buffer/base.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?