Subject: [Boost-bugs] [Boost C++ Libraries] #5627: Compilation error when including range/algorithm.hpp before range/join.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-22 12:09:41
#5627: Compilation error when including range/algorithm.hpp before range/join.hpp
------------------------------------------------------+---------------------
Reporter: Nicolas Savoire <nicos@â¦> | Owner: neilgroves
Type: Bugs | Status: new
Milestone: To Be Determined | Component: range
Version: Boost Release Branch | Severity: Regression
Keywords: |
------------------------------------------------------+---------------------
The following code fails to compile (tested with gcc 4.5.2):
{{{
#include <boost/range/algorithm/search_n.hpp>
#include <boost/range/join.hpp>
int main() {}
}}}
with the error:
{{{
/usr/local/mkt-dev/src/boost/boost/range/join.hpp:44: error: expected
template-name before â<â token
/usr/local/mkt-dev/src/boost/boost/range/join.hpp:44: error: expected â{â
before â<â token
/usr/local/mkt-dev/src/boost/boost/range/join.hpp:44: error: expected
unqualified-id before â<â token
}}}
It seems that the issue is that there is a boost::range::range_detail
namespace in search_n.hpp and a boost::range_detail namespace in other
files included, which confuses the compiler.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5627> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC