mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 16:46:47 +00:00
Fix pmix::info copy ctor
This commit is contained in:
parent
61a3da8697
commit
2047dbef59
|
@ -124,7 +124,15 @@ struct info : pmix_info_t
|
||||||
{
|
{
|
||||||
(void)strncpy(key, k.c_str(), PMIX_MAX_KEYLEN);
|
(void)strncpy(key, k.c_str(), PMIX_MAX_KEYLEN);
|
||||||
flags = 0;
|
flags = 0;
|
||||||
value = pmix::value(std::forward<Args>(args)...);
|
|
||||||
|
pmix::value rhs(std::forward<Args>(args)...);
|
||||||
|
auto lhs(&value);
|
||||||
|
status rc;
|
||||||
|
PMIX_VALUE_XFER(rc, lhs, static_cast<pmix_value_t*>(&rhs));
|
||||||
|
|
||||||
|
if (rc != PMIX_SUCCESS) {
|
||||||
|
throw runtime_error("pmix::info ctor failed: rc=" + rc);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user