Opened 9 years ago

Closed 9 years ago

#9187 closed Bugs (fixed)

basic_text_oprimitive.ipp: Solaris Studio using apache stl: need to include <algorithm>

Reported by: Brian Vandenberg <phantall+boost@…> Owned by: Robert Ramey
Milestone: To Be Determined Component: serialization
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc: Brian, Vandenberg, <phantall+boost@…>

Description

I'm building in Solaris against boost 1.54 (with a few modifications needed to get a number of things to build).

The error I get is "copy is not a member of std" when building boost/archive/impl/basic_text_oprimitive.ipp.

Adding an "#include <algorithm>" to that file eliminates the build error.

Change History (5)

comment:1 by Brian Vandenberg <phantall+boost@…>, 9 years ago

I forgot to mention, the same sort of thing happens in boost/archive/iterators/transform_width.hpp, though it complains about the use of std::min as opposed to std::copy.

comment:2 by viboes, 9 years ago

Component: Building Boostserialization
Owner: set to Robert Ramey

comment:3 by Robert Ramey, 9 years ago

Hmm - on which line to you get this error? I don't find any call to std::copy in the code. I'm guessing this might be coming from some include file. In that case, THAT include file should include the <algorithm header>

This is separate from the min issue in transform_width which is a little more subtle.

comment:4 by Brian Vandenberg <phantall+boost@…>, 9 years ago

Here's where I'm seeing them both:

boost/archive/impl/basic_text_oprimitive.ipp:60 boost/archive/iterators/transform_width.hpp:151

-Brian

comment:5 by Robert Ramey, 9 years ago

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