projects
/
invirt/third/libt4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Working on g++ compatibility
[invirt/third/libt4.git]
/
paxos.cc
diff --git
a/paxos.cc
b/paxos.cc
index
ab60302
..
a88a7a5
100644
(file)
--- a/
paxos.cc
+++ b/
paxos.cc
@@
-7,7
+7,7
@@
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) {
// 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));
+ auto overlap = (size_t)count_if(l1.begin(), l1.end(), std::bind(isamember, _1, l2));
return overlap >= (l1.size() >> 1) + 1;
}
return overlap >= (l1.size() >> 1) + 1;
}