X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/6b5e09540e9392a7015fae1ad3b01b0973600ff2..f0dcb6b97d6d40f67698d1f71ac26970f1776f82:/paxos.cc diff --git a/paxos.cc b/paxos.cc index ab60302..dad5ecf 100644 --- a/paxos.cc +++ b/paxos.cc @@ -6,8 +6,8 @@ bool isamember(const node_t & m, const nodes_t & nodes) { } // check if l2 contains a majority of the elements of l1 -bool majority(const nodes_t &l1, const nodes_t &l2) { - auto overlap = (size_t)count_if(l1.begin(), l1.end(), bind(isamember, _1, l2)); +bool majority(const nodes_t & l1, const nodes_t & l2) { + auto overlap = (size_t)count_if(l1.begin(), l1.end(), std::bind(isamember, _1, l2)); return overlap >= (l1.size() >> 1) + 1; }