Opened 9 years ago

Closed 9 years ago

#9421 closed Bugs (fixed)

VC2013 build error /boost/archive/iterators/transform_width.hpp

Reported by: anonymous Owned by: Robert Ramey
Milestone: To Be Determined Component: serialization
Version: Boost 1.55.0 Severity: Problem
Keywords: std::min Cc:

Description (last modified by viboes)

vc2013 build boost1.55 error:undefined std::min vc2013 std::min in file<algorithm> not in file<xutility> can this:

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif
#include <xutility>
//add------
#if defined(_MSC_VER) && (_MSC_VER >= 1800)
#include <algorithm>
#endif

Attachments (1)

transform_width.hpp (5.6 KB ) - added by anonymous 9 years ago.
patch

Download all attachments as: .zip

Change History (4)

by anonymous, 9 years ago

Attachment: transform_width.hpp added

patch

comment:1 by viboes, 9 years ago

Component: Noneserialization
Description: modified (diff)
Owner: set to Robert Ramey

comment:2 by Robert Ramey, 9 years ago

I"m not getting this

according to my info std::min is defined in <algorithm>

Perhaps this should be ?:

#if defined(_MSC_VER) && (_MSC_VER < 1800)
#include <xutility>
##else
#include <algorithm>
#endif}}}

comment:3 by Robert Ramey, 9 years ago

Resolution: fixed
Status: newclosed

I couldn't find any problem in the history.

In any case now it's just:

#include <algorithm> // std::min

now. so I'm going to close this.

Robert Ramey

Note: See TracTickets for help on using tickets.