Skip to content

Commit

Permalink
Merge pull request #30068 from camolezi/reduce-boost-hash-CondCore
Browse files Browse the repository at this point in the history
 replace boost::hash for std::hash
  • Loading branch information
cmsbuild committed Jun 9, 2020
2 parents 9470c31 + e6aadb4 commit d3739c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CondCore/CondDB/interface/Types.h
Expand Up @@ -13,7 +13,7 @@
//

#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/functional/hash.hpp>
#include <functional>
//
#include "CondCore/CondDB/interface/Time.h"

Expand Down Expand Up @@ -123,7 +123,7 @@ namespace cond {
std::size_t hashvalue() const {
// Derived from CondDB v1 TagMetadata implementation.
// Unique Keys constructed with Record and Labels - allowing for multiple references of the same Tag in a GT
boost::hash<std::string> hasher;
std::hash<std::string> hasher;
std::string key = recordName();
if (!recordLabel().empty())
key = key + "_" + recordLabel();
Expand Down

0 comments on commit d3739c9

Please sign in to comment.