Opened 8 years ago

Closed 8 years ago

#10754 closed Bugs (fixed)

any_iterator.hpp does not compile

Reported by: dlfsdev@… Owned by: Neil Groves
Milestone: Boost 1.58.0 Component: range
Version: Boost 1.57.0 Severity: Showstopper
Keywords: any_iterator Cc:

Description

Including 1.57.0's version of any_iterator.hpp results in many compile errors. It appears the problem is that the code in this header uses the names "postfix_increment_proxy" and "writable_postfix_increment_proxy" without any namespace qualifiers even though they are both defined inside of boost::iterators::detail.

Change History (5)

comment:1 by nigel.pattinson@…, 8 years ago

I am also experiencing this, using Visual Studio 2013. Exact error encountered is:

boost/range/detail/any_iterator.hpp(176): error C2143: syntax error : missing ';' before '<'

Source file can simply be:

#include <boost/range.hpp> #include <boost/range/any_range.hpp>

It looks like this code is unchanged from 1.55.0 which we are currently using and does not display this issue, so presumably some included header is interfering somehow. Will look into it further and report back if I find anything.

comment:2 by nigel.pattinson@…, 8 years ago

As the original reporter alluded to, the problem is that "postfix_increment_proxy" and "writable_postfix_increment_proxy" have moved from boost::detail to boost::iterators::detail. The specializations in any_iterator.hpp need to exist within boost::iterators::detail rather than boost::detail.

comment:3 by Adam Romanek <romanek.adam@…>, 8 years ago

Component: Nonerange
Owner: set to Neil Groves

I also experience the same problem when upgrading from Boost 1.55 to 1.57.

comment:4 by Neil Groves, 8 years ago

Resolved on develop and master branch.

comment:5 by Neil Groves, 8 years ago

Milestone: To Be DeterminedBoost 1.58.0
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.