#12289 closed Bugs (fixed)
Compile errors if you include boost/geometry/algorithms/buffer.hpp directly
Reported by: | Owned by: | Barend Gehrels | |
---|---|---|---|
Milestone: | Boost 1.62.0 | Component: | geometry |
Version: | Boost 1.61.0 | Severity: | Regression |
Keywords: | cout | Cc: |
Description
If you include boost/geometry/algorithms/buffer.hpp directly in Boost 1.61.0, you will get compile errors about cout not being part of std. The same was ok in Boost 1.58.0. There seems to be a missing include to iostream somewhere.
Change History (3)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Milestone: | To Be Determined → Boost 1.62.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Thanks, it is fixed - we should not std::cout unless in define-conditional blocks
comment:3 by , 6 years ago
Yep - this works for me.
That said, I've found that other Geometry headers fail to compile independently and I've opened ticket:12393 about that.
Thanks very much for your work on this ticket.
Note:
See TracTickets
for help on using tickets.
I'm also seeing this problem with
boost/geometry/algorithms/comparable_distance.hpp
.Using the latest commit (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:
This violates the Boost header policy, which requires:
The Clang errors are: