Skip to content

Commit 2e23b2a

Browse files
committed
Adding decay to noncopyablefunctorwrapper
1 parent cd97141 commit 2e23b2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Release/include/pplx/pplxtasks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3842,7 +3842,7 @@ class task
38423842
typedef typename details::_NormalizeVoidToUnitType<_ContinuationReturnType>::_Type _NormalizedContinuationReturnType;
38433843

38443844
typename details::_Task_ptr<_ReturnType>::_Type _M_ancestorTaskImpl;
3845-
typename details::_CopyableFunctor<_Function>::_Type _M_function;
3845+
typename details::_CopyableFunctor<typename std::decay<_Function>::type >::_Type _M_function;
38463846

38473847
template <class _ForwardedFunction>
38483848
_ContinuationTaskHandle(const typename details::_Task_ptr<_ReturnType>::_Type & _AncestorImpl,

0 commit comments

Comments
 (0)