diff --git a/include/boost/graph/strong_components.hpp b/include/boost/graph/strong_components.hpp index 94f09ffd..32187a3a 100644 --- a/include/boost/graph/strong_components.hpp +++ b/include/boost/graph/strong_components.hpp @@ -195,6 +195,8 @@ namespace boost { strong_components(const Graph& g, ComponentMap comp, const bgl_named_params& params) { + typedef typename graph_traits::directed_category DirCat; + typedef typename require_same::type req1; return detail::strong_comp_dispatch1 (g, comp, params, get_param(params, vertex_root_t())); } @@ -203,6 +205,8 @@ namespace boost { inline typename property_traits::value_type strong_components(const Graph& g, ComponentMap comp) { + typedef typename graph_traits::directed_category DirCat; + typedef typename require_same::type req1; bgl_named_params params(0); return strong_components(g, comp, params); }