--- /Users/louisdionne/Downloads/named_graph.hpp 2012-10-28 22:42:46.000000000 -0400 +++ boost/graph/named_graph.hpp 2012-10-28 22:36:40.000000000 -0400 @@ -11,13 +11,16 @@ #define BOOST_GRAPH_NAMED_GRAPH_HPP #include +#include #include #include +#include #include #include #include #include #include +#include #include // for std::runtime_error namespace boost { namespace graph { @@ -352,8 +355,15 @@ /// Retrieve the vertex associated with the given name, or add a new /// vertex with that name if no such vertex is available. -template -Vertex +/// Note: This is enabled only when the vertex property type is different +/// from the vertex name to avoid ambiguous overload problems with +/// the add_vertex() function that takes a vertex property. +template + typename enable_if >, +Vertex>::type add_vertex(typename BGL_NAMED_GRAPH::vertex_name_type const& name, BGL_NAMED_GRAPH& g) {