Modify

Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#5603 closed Bugs (fixed)

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

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

Description

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.

Attachments (1)

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

Download all attachments as: .zip

Change History (7)

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@…

Attachment: 5603_add_include.patch added

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 5 years ago by Nathan Ridge

Resolution: fixed
Status: newclosed

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

comment:5 Changed 5 years ago by Nathan Ridge

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

comment:6 Changed 5 years ago by Nathan Ridge

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Neil Groves.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.