mirror of
https://github.com/latentPrion/libspinscale.git
synced 2026-06-23 19:48:32 +00:00
PostingPromise: reorder post-to target to be 1st arg
This commit is contained in:
@@ -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. */
|
||||||
|
|||||||
Reference in New Issue
Block a user