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
Have create_jbod() return a JbodPtr instead of Jbod* to avoid memleaks
[simgrid.git]
/
include
/
xbt
/
promise.hpp
diff --git
a/include/xbt/promise.hpp
b/include/xbt/promise.hpp
index
8926b20
..
dc19907
100644
(file)
--- a/
include/xbt/promise.hpp
+++ b/
include/xbt/promise.hpp
@@
-17,8
+17,7
@@
#include <utility>
#include <xbt/ex.h>
#include <utility>
#include <xbt/ex.h>
-namespace simgrid {
-namespace xbt {
+namespace simgrid::xbt {
/** A value or an exception (or nothing)
*
/** A value or an exception (or nothing)
*
@@
-126,7
+125,6
@@
template <class P, class F> inline void set_promise(P& promise, F&& future)
{
fulfill_promise(promise, [&future] { return std::forward<F>(future).get(); });
}
{
fulfill_promise(promise, [&future] { return std::forward<F>(future).get(); });
}
-}
-}
+} // namespace simgrid::xbt
#endif
#endif