Forming reference to void when getting property map from a bundled property
My Graph type is defined as follows: using Graph = boost::adjacency_list<vecS, setS, directedS, State, CostType>; where CostType happens to be int . I am trying to obtain the Kamada-Kawai spring layout as follows: template <class PointMap> PointMap layout() const { PointMap res; boost::associative_property_map<PointMap> temp(res); circle_graph_layout(g_, temp, 10.0); // http://www.boost.org/doc/libs/1_59_0/libs/graph/doc/bundles.html bool ok = kamada_kawai_spring_layout( g_, temp, get(edge_bundle, g_), square_topology<>(50.0), side_length(50.0)); (void)ok; //boost::BOOST_CHECK(ok); return res;