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::kernel::Future constructor.
[simgrid.git]
/
include
/
simgrid
/
kernel
/
future.hpp
diff --git
a/include/simgrid/kernel/future.hpp
b/include/simgrid/kernel/future.hpp
index
3a3f29c
..
d1ec120
100644
(file)
--- a/
include/simgrid/kernel/future.hpp
+++ b/
include/simgrid/kernel/future.hpp
@@
-282,7
+282,7
@@
template<class T>
class Future {
public:
Future() = default;
- Future(std::shared_ptr<FutureState<T>> state) : state_(std::move(state)) {}
+
explicit
Future(std::shared_ptr<FutureState<T>> state) : state_(std::move(state)) {}
// Move type:
Future(Future&) = delete;