Skip to content
Snippets Groups Projects

Fix build with latest ROOT by switching to std::unordered_{set,map}.

Merged Roel Aaij requested to merge raaij_fix_build into master
1 file
+ 10
9
Compare changes
  • Side-by-side
  • Inline
// $Id: $
#ifndef DECISIONMAP_H
#ifndef DECISIONMAP_H
#define DECISIONMAP_H 1
// Include files
#include <memory>
#include <unordered_map>
#include <unordered_set>
// boost
#include <boost/unordered_map.hpp>
#include <boost/unordered_set.hpp>
#include <boost/functional/hash.hpp>
/** @class DecisionMap DecisionMap.h
*
*
*
* @author Roel Aaij
* @date 2010-03-26
*/
class DecisionMap {
public:
public:
/// Standard constructor
typedef std::pair< unsigned int, unsigned int > eventKey_t;
using eventKey_t = std::pair<unsigned int, unsigned int>;
DecisionMap( );
DecisionMap( );
virtual ~DecisionMap( ); ///< Destructor
@@ -43,8 +44,8 @@ public:
private:
typedef boost::unordered_set< std::string > decisions_t;
typedef boost::unordered_map< eventKey_t, decisions_t > decisionMap_t;
using decisions_t = std::unordered_set<std::string> ;
using decisionMap_t = std::unordered_map<eventKey_t, decisions_t, boost::hash<eventKey_t>>;
decisionMap_t* m_map;
// caching
Loading