]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2157] avoid using unnamed namespace in header file
authorYoshitaka Aharen <aharen@jprs.co.jp>
Mon, 28 Jan 2013 13:38:26 +0000 (22:38 +0900)
committerYoshitaka Aharen <aharen@jprs.co.jp>
Mon, 28 Jan 2013 13:40:21 +0000 (22:40 +0900)
src/lib/statistics/counter.h
src/lib/statistics/counter_dict.h

index 6ed05dea0a2d9a22c0717ad817d30e5a38c0457d..186b294b98bee8a03b68fe520a93eae02aa5be52 100644 (file)
 
 #include <vector>
 
-namespace {
-const unsigned int InitialValue = 0;
-} // anonymous namespace
-
 namespace isc {
 namespace statistics {
 
@@ -36,6 +32,7 @@ public:
 
 private:
     std::vector<Counter::Value> counters_;
+    static const unsigned int InitialValue = 0;
 
 public:
     /// The constructor.
index 594418ad9ef0391a2139696a9354b8d461ee01d7..6fb74ceb58ab3e10944a0e4d0f36d5982de09ae7 100644 (file)
 #include <iterator>
 #include <utility>
 
-namespace {
-typedef boost::shared_ptr<isc::statistics::Counter> CounterPtr;
-typedef std::map<std::string, CounterPtr> DictionaryMap;
-}
 
 namespace isc {
 namespace statistics {
 
 class CounterDictionary : boost::noncopyable {
 private:
+    typedef boost::shared_ptr<isc::statistics::Counter> CounterPtr;
+    typedef std::map<std::string, CounterPtr> DictionaryMap;
     DictionaryMap dictionary_;
     std::vector<std::string> elements_;
     const size_t items_;