Opened 11 years ago

Closed 10 years ago

Last modified 10 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@… 10 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by Nexus, 11 years ago

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 by Olaf van der Spek <olafvdspek@…>, 11 years ago

Reordering includes sounds like a workaround.

by redboltz@…, 10 years ago

Attachment: 5603_add_include.patch added

comment:3 by Takatoshi Kondo <redboltz@…>, 10 years ago

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

Resolution: fixed
Status: newclosed

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

comment:5 by Nathan Ridge, 10 years ago

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

comment:6 by Nathan Ridge, 10 years ago

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

Note: See TracTickets for help on using tickets.