diff --git a/include/spinscale/co/postingPromise.h b/include/spinscale/co/postingPromise.h index 3b93a84..2d49b3e 100644 --- a/include/spinscale/co/postingPromise.h +++ b/include/spinscale/co/postingPromise.h @@ -207,14 +207,14 @@ struct PostingPromise /** Non-viral entry with explicit post-TO target. */ template PostingPromise( + ExplicitPostTarget _calleePostTarget, std::exception_ptr &_callerExceptionPtr, std::function _callerLambda, - ExplicitPostTarget _calleePostTarget, TailArgs &&...) noexcept : returnValues(_callerExceptionPtr), callerLambda(std::move(_callerLambda)), - postBackStatus(*this), - calleePostTarget(std::move(_calleePostTarget)) + calleePostTarget(std::move(_calleePostTarget)), + postBackStatus(*this) {} /** Viral / free-function entry with explicit post-TO target. */ @@ -256,14 +256,14 @@ struct PostingPromise && !is_explicit_post_target_v>) PostingPromise( ObjectArg &&, + ExplicitPostTarget _calleePostTarget, std::exception_ptr &_callerExceptionPtr, std::function _callerLambda, - ExplicitPostTarget _calleePostTarget, TailArgs &&...) noexcept : PostingPromise( + std::move(_calleePostTarget), _callerExceptionPtr, - std::move(_callerLambda), - std::move(_calleePostTarget)) + std::move(_callerLambda)) {} /** Member viral with explicit post-TO target. */