Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12289: Compile errors if you include boost/geometry/algorithms/buffer.hpp directly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-08-11 11:24:58
#12289: Compile errors if you include boost/geometry/algorithms/buffer.hpp directly
-------------------------------+---------------------------
Reporter: phelippeneveu@⦠| Owner: barendgehrels
Type: Bugs | Status: new
Milestone: To Be Determined | Component: geometry
Version: Boost 1.61.0 | Severity: Regression
Resolution: | Keywords: cout
-------------------------------+---------------------------
Comment (by Tony Lewis <tonyelewis@â¦>):
I'm also seeing this problem with
`boost/geometry/algorithms/comparable_distance.hpp`.
Using the latest commit
([https://github.com/boostorg/geometry/tree/3ce8872b68c495f4e89b9db678a49b4db4ca9f3b
3ce8872]) of the develop branch of the !GitHub boostorg/geometry repo (and
Boost 1.61.0 for the other libraries), both of the following commands
fail:
{{{
g++ -x c++ -isystem include -isystem
/opt/boost_1_61_0_gcc_build/include
include/boost/geometry/algorithms/comparable_distance.hpp
clang++ -x c++ -isystem include -isystem
/opt/boost_1_61_0_clang_build/include
include/boost/geometry/algorithms/comparable_distance.hpp
}}}
This violates the [http://www.boost.org/development/header.html Boost
header policy], which requires:
> Make sure that a translation unit consisting of just the contents of the
header file will compile successfully.
The Clang errors are:
{{{
In file included from
include/boost/geometry/algorithms/comparable_distance.hpp:23:
In file included from
include/boost/geometry/algorithms/detail/comparable_distance/implementation.hpp:22:
In file included from
include/boost/geometry/algorithms/detail/distance/implementation.hpp:25:
In file included from
include/boost/geometry/algorithms/detail/distance/multipoint_to_geometry.hpp:26:
In file included from
include/boost/geometry/algorithms/detail/distance/range_to_geometry_rtree.hpp:25:
In file included from
include/boost/geometry/algorithms/detail/closest_feature/range_to_range.hpp:22:
In file included from include/boost/geometry/index/rtree.hpp:30:
In file included from include/boost/geometry/algorithms/touches.hpp:32:
In file included from
include/boost/geometry/algorithms/detail/overlay/overlay.hpp:27:
In file included from
include/boost/geometry/algorithms/detail/overlay/enrich_intersection_points.hpp:30:
include/boost/geometry/algorithms/detail/overlay/handle_colocations.hpp:201:10:
error: no member named 'cout' in namespace 'std'
std::cout << " TODO: merge " << cid0 << " and " << cid1 << std::endl;
~~~~~^
include/boost/geometry/algorithms/detail/overlay/handle_colocations.hpp:320:26:
error: no member named 'cout' in namespace 'std'
std::cout << " CONFLICT " << std::endl;
~~~~~^
2 errors generated.
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12289#comment:1> 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:20 UTC