mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-16 10:01:47 +00:00
FairMQ: Fix various errors from CI
* move Plugins::Version to fair::mq::tools * fix Parser interface * make device a shared pointer in main * provide std::hash template specialization * fix FairMQ.Plugins/FairMQ.PluginsStatic when run with ctest * fix MQ/serialization example * add --no-as-needed flag * GCC 4 does not support member refs, move to pointer types
This commit is contained in:
committed by
Mohammad Al-Turany
parent
ad0f050c99
commit
a26925cbf5
@@ -8,6 +8,7 @@
|
||||
#ifndef FAIRMQTRANSPORTS_H_
|
||||
#define FAIRMQTRANSPORTS_H_
|
||||
|
||||
#include <fairmq/Tools.h>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
@@ -22,6 +23,7 @@ enum class Transport
|
||||
SHM
|
||||
};
|
||||
|
||||
|
||||
static std::unordered_map<std::string, Transport> TransportTypes {
|
||||
{ "default", Transport::DEFAULT },
|
||||
{ "zeromq", Transport::ZMQ },
|
||||
@@ -34,14 +36,9 @@ static std::unordered_map<std::string, Transport> TransportTypes {
|
||||
namespace std
|
||||
{
|
||||
|
||||
template <>
|
||||
struct hash<FairMQ::Transport>
|
||||
{
|
||||
size_t operator()(const FairMQ::Transport& v) const
|
||||
{
|
||||
return hash<int>()(static_cast<int>(v));
|
||||
}
|
||||
};
|
||||
template<>
|
||||
struct hash<FairMQ::Transport> : fair::mq::tools::HashEnum<FairMQ::Transport> {};
|
||||
|
||||
} /* namespace std */
|
||||
|
||||
}
|
||||
#endif /* FAIRMQTRANSPORTS_H_ */
|
||||
|
Reference in New Issue
Block a user