From 2d898f7db82e1c7ad28c4224973ff745e4c0d02f Mon Sep 17 00:00:00 2001 From: Robert Ramey Date: Fri, 24 Apr 2015 15:28:46 -0700 Subject: [PATCH] replace std::min with (std::min) in order to avoid problems with compilers which use min macros --- include/boost/archive/iterators/transform_width.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/archive/iterators/transform_width.hpp b/include/boost/archive/iterators/transform_width.hpp index 581e24fb..ff12776a 100644 --- a/include/boost/archive/iterators/transform_width.hpp +++ b/include/boost/archive/iterators/transform_width.hpp @@ -153,7 +153,7 @@ void transform_width::fill() { // append these bits to the next output // up to the size of the output - unsigned int i = std::min(missing_bits, m_remaining_bits); + unsigned int i = (std::min)(missing_bits, m_remaining_bits); // shift interesting bits to least significant position base_value_type j = m_buffer_in >> (m_remaining_bits - i); // and mask off the un interesting higher bits