diff --git a/fairmq/Transports.h b/fairmq/Transports.h index fd37ac0f..554fb262 100644 --- a/fairmq/Transports.h +++ b/fairmq/Transports.h @@ -9,7 +9,6 @@ #ifndef FAIR_MQ_TRANSPORTS_H #define FAIR_MQ_TRANSPORTS_H -#include #include #include @@ -32,14 +31,6 @@ struct TransportError : std::runtime_error { using std::runtime_error::runtime_e } // namespace fair::mq -namespace std -{ - -template<> -struct hash : fair::mq::tools::HashEnum {}; - -} /* namespace std */ - namespace fair::mq { diff --git a/fairmq/tools/CppSTL.h b/fairmq/tools/CppSTL.h index 356e9ad1..5db6df40 100644 --- a/fairmq/tools/CppSTL.h +++ b/fairmq/tools/CppSTL.h @@ -9,24 +9,10 @@ #ifndef FAIR_MQ_TOOLS_CPPSTL_H #define FAIR_MQ_TOOLS_CPPSTL_H -#include -#include -#include - namespace fair::mq::tools { -// provide an enum hasher to compensate std::hash not supporting enums in C++11 -template -struct HashEnum -{ - auto operator()(const Enum& e) const noexcept - -> typename std::enable_if::value, std::size_t>::type - { - using _type = typename std::underlying_type::type; - return std::hash<_type>{}(static_cast<_type>(e)); - } -}; + } // namespace fair::mq::tools