Commit fea04db6 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix compilation with older GCC versions.

parent 46c480da
......@@ -109,9 +109,9 @@ void community_network(GraphInterface& gi, GraphInterface& cgi,
boost::any edge_count, boost::any vweight,
boost::any eweight, bool self_loops)
{
typedef typename mpl::vector<vweight_map_t, voweight_map_t, no_vweight_map_t>::type
typedef mpl::vector<vweight_map_t, voweight_map_t, no_vweight_map_t>::type
vweight_properties;
typedef typename mpl::vector<eweight_map_t, eoweight_map_t, no_eweight_map_t>::type
typedef mpl::vector<eweight_map_t, eoweight_map_t, no_eweight_map_t>::type
eweight_properties;
if (eweight.empty())
......
......@@ -1059,7 +1059,7 @@ void cairo_draw(GraphInterface& gi,
python::object ocr)
{
attrs_t vattrs, eattrs, vdefaults, edefaults;
typedef typename graph_traits<GraphInterface::multigraph_t>::vertex_descriptor vertex_t;
typedef graph_traits<GraphInterface::multigraph_t>::vertex_descriptor vertex_t;
populate_attrs<vertex_t, vertex_properties>(ovattrs, vattrs);
populate_defaults(ovdefaults, vdefaults);
......@@ -1068,9 +1068,9 @@ void cairo_draw(GraphInterface& gi,
(gi, bind<void>(populate_edge_attrs(), _1, oeattrs,
ref(eattrs), oedefaults, ref(edefaults)))();
typedef typename mpl::push_back<vertex_scalar_properties, no_order>::type
typedef mpl::push_back<vertex_scalar_properties, no_order>::type
vorder_t;
typedef typename mpl::push_back<edge_scalar_properties, no_order>::type
typedef mpl::push_back<edge_scalar_properties, no_order>::type
eorder_t;
if (vorder.empty())
vorder = no_order();
......
......@@ -49,8 +49,8 @@ void sfdp_layout(GraphInterface& g, boost::any pos, boost::any vweight,
typedef mpl::push_back<edge_scalar_properties, eweight_map_t>::type
edge_props_t;
typedef typename property_map_type::apply<int32_t,
GraphInterface::vertex_index_map_t>::type
typedef property_map_type::apply<int32_t,
GraphInterface::vertex_index_map_t>::type
group_map_t;
double C = python::extract<double>(spring_parms[0]);
......@@ -67,7 +67,7 @@ void sfdp_layout(GraphInterface& g, boost::any pos, boost::any vweight,
typedef ConstantPropertyMap<bool,GraphInterface::vertex_t> pin_map_t;
typedef mpl::vector<typename property_map_type::apply
typedef mpl::vector<property_map_type::apply
<uint8_t,
GraphInterface::vertex_index_map_t>::type,
pin_map_t>::type
......@@ -150,7 +150,7 @@ void propagate_pos(GraphInterface& gi, GraphInterface& cgi, boost::any vmap,
{
rng_t rng(static_cast<rng_t::result_type>(seed));
typedef mpl::vector<typename property_map_type::apply
typedef mpl::vector<property_map_type::apply
<int32_t,
GraphInterface::vertex_index_map_t>::type>::type
vmaps_t;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment