Ticket #5603 (closed Bugs: fixed)

Opened 6 years ago

Last modified 4 years ago

the "range/any_range.hpp" header is not self-sufficient

Reported by: fourquet.d+boost@… Owned by: neilgroves
Milestone: To Be Determined Component: range
Version: Boost 1.46.1 Severity: Problem
Keywords: Cc:


A file with only the following single line won't compile:

#include <boost/range/any_range.hpp>

One has to manually include also e.g. boost/range.hpp.


5603_add_include.patch (998 bytes) - added by redboltz@… 5 years ago.

Change History

comment:1 Changed 6 years ago by Nexus

Boost 1.47.0 still has this problem. Swapping the following two lines in any_range.hpp fixes the bug:

  • #include <boost/range/detail/any_iterator.hpp>
  • #include <boost/range/concepts.hpp>

comment:2 Changed 6 years ago by Olaf van der Spek <olafvdspek@…>

Reordering includes sounds like a workaround.

Changed 5 years ago by redboltz@…

comment:3 Changed 5 years ago by Takatoshi Kondo <redboltz@…>

I meet the same problem. As someone reported in #7293, Boost 1.51.1 still has this problem. I attached the patch that adds include files.

comment:4 Changed 4 years ago by nathanridge

  • Status changed from new to closed
  • Resolution set to fixed

(In [81890]) [range] added missing includes to any_range.hpp and related files; fixes #5603

comment:5 Changed 4 years ago by nathanridge

Fixed. Thanks for the patch! (I added a few more includes to make some more files stand on their own.)

comment:6 Changed 4 years ago by nathanridge

(In [82139]) [range] merged bug fixes (r81890, refs #5603; r82071, refs #6103) from trunk


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.