mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Improve compilation speed
This commit is contained in:
committed by
Dennis Klein
parent
436f79bee5
commit
e4c349888d
@@ -9,11 +9,6 @@
|
||||
#ifndef FAIR_MQ_TOOLS_UNIQUE_H
|
||||
#define FAIR_MQ_TOOLS_UNIQUE_H
|
||||
|
||||
#include <boost/uuid/uuid.hpp>
|
||||
#include <boost/uuid/uuid_generators.hpp>
|
||||
#include <boost/uuid/uuid_io.hpp>
|
||||
#include <boost/functional/hash.hpp>
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace fair
|
||||
@@ -24,21 +19,10 @@ namespace tools
|
||||
{
|
||||
|
||||
// generates UUID string
|
||||
inline std::string Uuid()
|
||||
{
|
||||
boost::uuids::random_generator gen;
|
||||
boost::uuids::uuid u = gen();
|
||||
return boost::uuids::to_string(u);
|
||||
}
|
||||
std::string Uuid();
|
||||
|
||||
// generates UUID and returns its hash
|
||||
inline std::size_t UuidHash()
|
||||
{
|
||||
boost::uuids::random_generator gen;
|
||||
boost::hash<boost::uuids::uuid> uuid_hasher;
|
||||
boost::uuids::uuid u = gen();
|
||||
return uuid_hasher(u);
|
||||
}
|
||||
std::size_t UuidHash();
|
||||
|
||||
} /* namespace tools */
|
||||
} /* namespace mq */
|
||||
|
Reference in New Issue
Block a user