mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
PMIx: Support integer values
This commit is contained in:
parent
5fc1c47e2a
commit
e1134321dd
|
@ -21,7 +21,7 @@
|
|||
#include <vector>
|
||||
#include <FairMQLogger.h>
|
||||
|
||||
// C++ PMIx v2.1 API
|
||||
// C++ PMIx v2.2 API
|
||||
namespace pmix
|
||||
{
|
||||
|
||||
|
@ -90,12 +90,6 @@ struct value : pmix_value_t
|
|||
}
|
||||
}
|
||||
|
||||
// template<typename T>
|
||||
// value(const T* val, data_type dt)
|
||||
// {
|
||||
// PMIX_VALUE_LOAD(static_cast<pmix_value_t*>(this), const_cast<void*>(val), dt);
|
||||
// }
|
||||
|
||||
template<typename T>
|
||||
explicit value(T)
|
||||
{
|
||||
|
@ -112,6 +106,11 @@ struct value : pmix_value_t
|
|||
PMIX_VALUE_LOAD(
|
||||
static_cast<pmix_value_t*>(this), const_cast<char*>(val.c_str()), PMIX_STRING);
|
||||
}
|
||||
|
||||
explicit value(int val)
|
||||
{
|
||||
PMIX_VALUE_LOAD(static_cast<pmix_value_t*>(this), &val, PMIX_INT);
|
||||
}
|
||||
};
|
||||
|
||||
struct info : pmix_info_t
|
||||
|
|
Loading…
Reference in New Issue
Block a user