Modify

Ticket #5603 (closed Bugs: fixed)

Opened 3 years ago

Last modified 16 months 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:

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

5603_add_include.patch Download (998 bytes) - added by redboltz@… 18 months ago.

Change History

comment:1 Changed 3 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 3 years ago by Olaf van der Spek <olafvdspek@…>

Reordering includes sounds like a workaround.

Changed 18 months ago by redboltz@…

comment:3 Changed 18 months 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 17 months 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 17 months 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 16 months ago by nathanridge

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

View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.