A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[L07] Don't segfault on point-to-point communications
[simgrid.git]
/
src
/
mc
/
PageStore.cpp
diff --git
a/src/mc/PageStore.cpp
b/src/mc/PageStore.cpp
index
5be3176
..
88ea806
100644
(file)
--- a/
src/mc/PageStore.cpp
+++ b/
src/mc/PageStore.cpp
@@
-9,8
+9,6
@@
#include <sys/mman.h>
#include <sys/mman.h>
-#include <boost/foreach.hpp>
-
#include <xbt.h>
#include "PageStore.hpp"
#include <xbt.h>
#include "PageStore.hpp"
@@
-137,7
+135,7
@@
std::size_t PageStore::store_page(void* page)
// Try to find a duplicate in set of pages with the same hash:
page_set_type& page_set = this->hash_index_[hash];
// Try to find a duplicate in set of pages with the same hash:
page_set_type& page_set = this->hash_index_[hash];
-
BOOST_FOREACH (size_t pageno,
page_set) {
+
for (size_t pageno :
page_set) {
const void* snapshot_page = this->get_page(pageno);
if (memcmp(page, snapshot_page, xbt_pagesize) == 0) {
const void* snapshot_page = this->get_page(pageno);
if (memcmp(page, snapshot_page, xbt_pagesize) == 0) {