[BGL] trunk@63671: `detail/adjacency_list.hpp` needs to include <algorithm>

I get a compilation error in `boost/graph/detail/adjacency_list.hpp` that is fixed by adding `#include <algorithm>` to the top: /usr/local/include/boost/graph/detail/adjacency_list.hpp:1653: error: `equal_range` is not a member of `boost::graph_detail` A patch is attached.

I get a compilation error in `boost/graph/detail/adjacency_list.hpp` that is fixed by adding `#include <algorithm>` to the top
For me, line 1654 of `boost/graph/detail/adjacency_list.hpp`: boost::tie(first, last) = graph_detail:: also needs to be changed to: boost::tie(first, last) = std::

On Mon, 5 Jul 2010, Daniel Trebbien wrote:
I get a compilation error in `boost/graph/detail/adjacency_list.hpp` that is fixed by adding `#include <algorithm>` to the top:
/usr/local/include/boost/graph/detail/adjacency_list.hpp:1653: error: `equal_range` is not a member of `boost::graph_detail`
That file already includes <algorithm> (at least in the trunk), but it should be getting graph_detail::equal_range from <boost/pending/container_traits.hpp>; the file also appears to be including that. Could you please check if your version includes container_traits? If so, do you know what could cause the functions to appear to be undefined? -- Jeremiah Willcock

That file already includes <algorithm> (at least in the trunk), but it should be getting graph_detail::equal_range from <boost/pending/container_traits.hpp>; the file also appears to be including that. Could you please check if your version includes container_traits? If so, do you know what could cause the functions to appear to be undefined?
Sorry. Nevermind this whole thread. I didn't check out `boost/pending` from trunk.
participants (2)
-
Daniel Trebbien
-
Jeremiah Willcock