Opened 9 years ago

Closed 9 years ago

#9670 closed Bugs (fixed)

missing std::min in <boost/archive/iterators/transform_width.hpp>

Reported by: bolero.murakami+cpp@… Owned by: Robert Ramey
Milestone: To Be Determined Component: serialization
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

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

Change History (2)

comment:1 by anonymous, 9 years ago

Sorry, this probrem is already fixed at Ticket #9421 .

Please close this.

comment:2 by Robert Ramey, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.