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
cosmetics to please codacy
[simgrid.git]
/
include
/
simgrid
/
kernel
/
future.hpp
diff --git
a/include/simgrid/kernel/future.hpp
b/include/simgrid/kernel/future.hpp
index
8f0c25d
..
581db40
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:
{
struct PromiseBinder {
public:
- PromiseBinder(Promise<T> promise) : promise_(std::move(promise)) {}
+
explicit
PromiseBinder(Promise<T> promise) : promise_(std::move(promise)) {}
void operator()(Future<T> future)
{
simgrid::xbt::setPromise(promise_, future);
void operator()(Future<T> future)
{
simgrid::xbt::setPromise(promise_, future);
@@
-282,7
+282,7
@@
template<class T>
class Future {
public:
Future() = default;
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;
// Move type:
Future(Future&) = delete;
@@
-454,8
+454,8
@@
Future<T> unwrapFuture(Future<Future<T>> future)
template<class T>
class Promise {
public:
template<class T>
class Promise {
public:
- Promise() : state_(std::make_shared<FutureState<T>>()) {}
- Promise(std::shared_ptr<FutureState<T>> state) : state_(std::move(state)) {}
+
explicit
Promise() : state_(std::make_shared<FutureState<T>>()) {}
+
explicit
Promise(std::shared_ptr<FutureState<T>> state) : state_(std::move(state)) {}
// Move type
Promise(Promise const&) = delete;
// Move type
Promise(Promise const&) = delete;