From: Yoshitaka Aharen Date: Mon, 28 Jan 2013 13:38:26 +0000 (+0900) Subject: [2157] avoid using unnamed namespace in header file X-Git-Tag: bind10-1.1.0beta1-release~85^2~5^2~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3476033eb79b246bbf0904085f4cab3805d5eddd;p=thirdparty%2Fkea.git [2157] avoid using unnamed namespace in header file --- diff --git a/src/lib/statistics/counter.h b/src/lib/statistics/counter.h index 6ed05dea0a..186b294b98 100644 --- a/src/lib/statistics/counter.h +++ b/src/lib/statistics/counter.h @@ -22,10 +22,6 @@ #include -namespace { -const unsigned int InitialValue = 0; -} // anonymous namespace - namespace isc { namespace statistics { @@ -36,6 +32,7 @@ public: private: std::vector counters_; + static const unsigned int InitialValue = 0; public: /// The constructor. diff --git a/src/lib/statistics/counter_dict.h b/src/lib/statistics/counter_dict.h index 594418ad9e..6fb74ceb58 100644 --- a/src/lib/statistics/counter_dict.h +++ b/src/lib/statistics/counter_dict.h @@ -31,16 +31,14 @@ #include #include -namespace { -typedef boost::shared_ptr CounterPtr; -typedef std::map DictionaryMap; -} namespace isc { namespace statistics { class CounterDictionary : boost::noncopyable { private: + typedef boost::shared_ptr CounterPtr; + typedef std::map DictionaryMap; DictionaryMap dictionary_; std::vector elements_; const size_t items_;