MSVC 2005 specific fix for std::num_limits<>::max function

[SVN r3531]
This commit is contained in:
Jan Gaspar
2006-12-18 00:43:52 +00:00
parent 3cfdcd5654
commit 220b7f0c2a

View File

@@ -679,7 +679,7 @@ public:
\sa <code>size()</code>, <code>capacity()</code>
*/
size_type max_size() const {
return std::min<size_type>(m_alloc.max_size(), std::numeric_limits<difference_type>::max());
return std::min<size_type>(m_alloc.max_size(), (std::numeric_limits<difference_type>::max)());
}
//! Is the <code>circular_buffer</code> empty?