diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-09-12 22:16:01 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-09-14 06:58:17 +0000 |
commit | 755b6913407613821fb47fac95592930612add4b (patch) | |
tree | 702738d8426016c972acded228ce3d9288c7c151 /metrics | |
parent | af61fbd1a0b8ea6867ea662111edd3fbe53205cb (diff) |
Reduce boost::noncopyable exposure.
Diffstat (limited to 'metrics')
-rw-r--r-- | metrics/src/vespa/metrics/namehash.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/metrics/src/vespa/metrics/namehash.h b/metrics/src/vespa/metrics/namehash.h index 9a281e39111..21cb9bdeedb 100644 --- a/metrics/src/vespa/metrics/namehash.h +++ b/metrics/src/vespa/metrics/namehash.h @@ -20,18 +20,19 @@ */ #pragma once -#include <boost/utility.hpp> #include <vespa/metrics/memoryconsumption.h> #include <vespa/vespalib/stllike/hash_set.h> namespace metrics { -class NameHash : private boost::noncopyable { +class NameHash { vespalib::hash_set<std::string> _hash; uint32_t _unifiedCounter; uint32_t _checkedCounter; public: + NameHash(const NameHash &) = delete; + NameHash & operator = (const NameHash &) = delete; NameHash() : _unifiedCounter(0), _checkedCounter(0) {} void updateName(std::string& name) { |