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

Fix compilation issue with Boost 1.58

parent 7417054c
......@@ -111,15 +111,14 @@ struct overlap_partition_stats_t
get_bv_deg(v, b, eweight, g, rs, in_hist, out_hist);
bv_t bv;
cdeg_t cdeg;
for (auto r : rs)
{
deg_t deg = std::make_tuple(in_hist[r], out_hist[r]);
cdeg.push_back(deg);
cdeg.emplace_back(in_hist[r], out_hist[r]);
bv.push_back(r);
}
bv_t bv(rs.begin(), rs.end());
assert(bv.size() > 0);
_bvs[nv] = bv;
......@@ -141,10 +140,11 @@ struct overlap_partition_stats_t
for (size_t i = 0; i < bv.size(); ++i)
{
size_t r = bv[i];
_emhist[r] += get<0>(cdeg[i]);
_ephist[r] += get<1>(cdeg[i]);
bmh[i] += get<0>(cdeg[i]);
bph[i] += get<1>(cdeg[i]);
auto& deg = cdeg[i];
_emhist[r] += get<0>(deg);
_ephist[r] += get<1>(deg);
bmh[i] += get<0>(deg);
bph[i] += get<1>(deg);
}
}
......
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