[Boost-bugs] [Boost C++ Libraries] #9670: missing std::min in <boost/archive/iterators/transform_width.hpp>

Subject: [Boost-bugs] [Boost C++ Libraries] #9670: missing std::min in <boost/archive/iterators/transform_width.hpp>
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-15 07:13:05


#9670: missing std::min in <boost/archive/iterators/transform_width.hpp>
-----------------------------------+---------------------------
 Reporter: bolero.murakami+cpp@… | Owner: ramey
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: |
-----------------------------------+---------------------------
 code:
 {{{
 #include <boost/archive/iterators/transform_width.hpp>
 int main() {}
 }}}
 error:
 {{{
 /usr/local/boost-1.55.0/include/boost/archive/iterators/transform_width.hpp:151:31:
 error: no member named 'min' in namespace 'std'
         unsigned int i = std::min(missing_bits, m_remaining_bits);
                          ~~~~~^
 }}}
 I tested it in clang HEAD 3.5 (trunk 199132) and earlier version.

 see: (h)ttp://melpon.org/wandbox/permlink/qcuI4pS4yXs5hocN


 Include <algorithm> before this header, is OK.
 (h)ttp://melpon.org/wandbox/permlink/kONZvhhVPH9dvyU7

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9670>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC