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
remove some explicit keywords that I barely understand
[simgrid.git]
/
include
/
simgrid
/
kernel
/
future.hpp
diff --git
a/include/simgrid/kernel/future.hpp
b/include/simgrid/kernel/future.hpp
index
581db40
..
777a9f4
100644
(file)
--- a/
include/simgrid/kernel/future.hpp
+++ b/
include/simgrid/kernel/future.hpp
@@
-209,7
+209,7
@@
void bindPromise(Promise<T> promise, Future<T> future)
{
struct PromiseBinder {
public:
-
explicit
PromiseBinder(Promise<T> promise) : promise_(std::move(promise)) {}
+ PromiseBinder(Promise<T> promise) : promise_(std::move(promise)) {}
void operator()(Future<T> future)
{
simgrid::xbt::setPromise(promise_, future);
@@
-282,7
+282,7
@@
template<class T>
class Future {
public:
Future() = default;
-
explicit
Future(std::shared_ptr<FutureState<T>> state) : state_(std::move(state)) {}
+ Future(std::shared_ptr<FutureState<T>> state) : state_(std::move(state)) {}
// Move type:
Future(Future&) = delete;
@@
-454,8
+454,8
@@
Future<T> unwrapFuture(Future<Future<T>> future)
template<class T>
class Promise {
public:
-
explicit
Promise() : state_(std::make_shared<FutureState<T>>()) {}
-
explicit
Promise(std::shared_ptr<FutureState<T>> state) : state_(std::move(state)) {}
+ Promise() : state_(std::make_shared<FutureState<T>>()) {}
+ Promise(std::shared_ptr<FutureState<T>> state) : state_(std::move(state)) {}
// Move type
Promise(Promise const&) = delete;