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
Add explicit keyword to simgrid::xbt::Task constructor.
[simgrid.git]
/
include
/
xbt
/
dynar.hpp
diff --git
a/include/xbt/dynar.hpp
b/include/xbt/dynar.hpp
index
2129007
..
d9f77b5
100644
(file)
--- a/
include/xbt/dynar.hpp
+++ b/
include/xbt/dynar.hpp
@@
-1,11
+1,11
@@
-/* Copyright (c) 2004-2007, 2009-201
5
. The SimGrid Team.
+/* Copyright (c) 2004-2007, 2009-201
7
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#ifndef SIMGRI
d
_XBT_DYNAR_HPP
-#define SIMGRI
d
_XBT_DYNAR_HPP
+#ifndef SIMGRI
D
_XBT_DYNAR_HPP
+#define SIMGRI
D
_XBT_DYNAR_HPP
#include <boost/range/iterator_range.hpp>
#include <xbt/asserts.h>
#include <boost/range/iterator_range.hpp>
#include <xbt/asserts.h>
@@
-40,14
+40,6
@@
xbt_dynar_t newDeleteDynar()
[](void* p) { delete *(T**)p; });
}
[](void* p) { delete *(T**)p; });
}
-/** Dynar of `T*` which `destroy()` its values */
-template<class T> inline
-xbt_dynar_t newDestroyDynar()
-{
- return xbt_dynar_new(sizeof(T*),
- [](void* p) { simgrid::xbt::destroy(*(T**)p); });
-}
-
}
}
#endif
}
}
#endif