We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6635b1f commit 0203465Copy full SHA for 0203465
src/core/MpiCallbacks.hpp
@@ -203,7 +203,7 @@ class MpiCallbacks {
203
typename detail::functor_types<F>::argument_types,
204
std::tuple<Args...>>>>
205
CallbackHandle(std::shared_ptr<MpiCallbacks> cb, F &&f)
206
- : m_id(cb->add(std::forward<F>(f))), m_cb(cb) {}
+ : m_id(cb->add(std::forward<F>(f))), m_cb(std::move(cb)) {}
207
208
CallbackHandle(CallbackHandle const &) = delete;
209
CallbackHandle(CallbackHandle &&rhs) noexcept = default;
0 commit comments