#9279 closed Bugs (fixed)
Lack of min/max under VC12/VS2013
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | config |
Version: | Boost 1.55.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Missing min/max in boost/config/stdlib/dinkumware.hpp causes some libraries failed to build under vc12. The patch is in ticket #8750, https://svn.boost.org/trac/boost/attachment/ticket/8750/for_vs2013.patch.
Change History (5)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Yes. In my test, the min/max only affect the Boost.Serialization. So add
#if defined(_MSC_VER) && (_MSC_VER >= 1800) # include <algorithm> // for std::min and std::max #endif
to boost\archive\iterators\transform_width.hpp also fix this problem.
comment:4 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Closing as Boost.Config is already patched for VC 2013.
Note:
See TracTickets
for help on using tickets.
Although I'm not necessarily against this patch - I'm a bit concerned about Boost.Config unconditionally including <algorithm>. If individual libraries are using functions like min/max without including that header, then they should be the ones patched IMO. This helps to keep Boost.Config's dependencies as small as possible.