PostingPromise: reorder post-to target to be 1st arg

This commit is contained in:
2026-05-30 21:45:51 -04:00
parent 42076d6c78
commit a53e0ca325
+6 -6
View File
@@ -207,14 +207,14 @@ struct PostingPromise
/** Non-viral entry with explicit post-TO target. */ /** Non-viral entry with explicit post-TO target. */
template <typename... TailArgs> template <typename... TailArgs>
PostingPromise( PostingPromise(
ExplicitPostTarget _calleePostTarget,
std::exception_ptr &_callerExceptionPtr, std::exception_ptr &_callerExceptionPtr,
std::function<void()> _callerLambda, std::function<void()> _callerLambda,
ExplicitPostTarget _calleePostTarget,
TailArgs &&...) noexcept TailArgs &&...) noexcept
: returnValues(_callerExceptionPtr), : returnValues(_callerExceptionPtr),
callerLambda(std::move(_callerLambda)), 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. */ /** Viral / free-function entry with explicit post-TO target. */
@@ -256,14 +256,14 @@ struct PostingPromise
&& !is_explicit_post_target_v<std::remove_cvref_t<ObjectArg>>) && !is_explicit_post_target_v<std::remove_cvref_t<ObjectArg>>)
PostingPromise( PostingPromise(
ObjectArg &&, ObjectArg &&,
ExplicitPostTarget _calleePostTarget,
std::exception_ptr &_callerExceptionPtr, std::exception_ptr &_callerExceptionPtr,
std::function<void()> _callerLambda, std::function<void()> _callerLambda,
ExplicitPostTarget _calleePostTarget,
TailArgs &&...) noexcept TailArgs &&...) noexcept
: PostingPromise( : PostingPromise(
std::move(_calleePostTarget),
_callerExceptionPtr, _callerExceptionPtr,
std::move(_callerLambda), std::move(_callerLambda))
std::move(_calleePostTarget))
{} {}
/** Member viral with explicit post-TO target. */ /** Member viral with explicit post-TO target. */