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 7344c2c commit 96c02e3Copy full SHA for 96c02e3
modules/task/include/task.hpp
@@ -283,7 +283,7 @@ using TaskPtr = std::shared_ptr<Task<InType, OutType>>;
283
/// @param in Input to pass to the task constructor.
284
/// @return Shared a pointer to the newly created task.
285
template <typename TaskType, typename InType>
286
-std::shared_ptr<TaskType> TaskGetter(InType in) {
+std::shared_ptr<TaskType> TaskGetter(const InType &in) {
287
return std::make_shared<TaskType>(in);
288
}
289
0 commit comments