aboutsummaryrefslogtreecommitdiff
path: root/promise.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'promise.hpp')
-rw-r--r--promise.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/promise.hpp b/promise.hpp
index 7831a1c..9fb6170 100644
--- a/promise.hpp
+++ b/promise.hpp
@@ -124,8 +124,8 @@ namespace promise {
class promise_t: public std::shared_ptr<Promise> {
public:
friend Promise;
- template<typename PList> friend promise_t all(PList promise_list);
- template<typename PList> friend promise_t race(PList promise_list);
+ template<typename PList> friend promise_t all(const PList &promise_list);
+ template<typename PList> friend promise_t race(const PList &promise_list);
promise_t() = delete;
template<typename Func>