Opened 8 years ago

Closed 8 years ago

#10804 closed Bugs (wontfix)

BGL_FORALL_VERTICES

Reported by: Madushan Nishantha <j.l.madushan@…> Owned by: Jeremiah Willcock
Milestone: To Be Determined Component: graph
Version: Boost 1.57.0 Severity: Problem
Keywords: Cc:

Description

BGL_FORALL_VERTICES macro in boost/graph/iteration_macros.hpp does not expand into a namespace safe code. The call to boost::vertices() expands as vertices().

Change History (2)

comment:1 by Jeremiah Willcock, 8 years ago

That is done intentionally so that the macro will work with graph types that are not in the boost namespace. The unqualified call is done to trigger ADL; a namespace-qualified call would not work correctly in generic algorithms that need to work on user-defined graph types.

comment:2 by Jeremiah Willcock, 8 years ago

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.