BIND 10 trac510, updated. 0b7c39d9dcd44dfba0caf6e9353f00f47bbe7e9c [trac510] use boost::noncopyable instead of declaring private members
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Aug 2 01:24:05 UTC 2011
The branch, trac510 has been updated
via 0b7c39d9dcd44dfba0caf6e9353f00f47bbe7e9c (commit)
from d23827556ec500284bd155cdb731213343030f53 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0b7c39d9dcd44dfba0caf6e9353f00f47bbe7e9c
Author: Yoshitaka Aharen <aharen at jprs.co.jp>
Date: Tue Aug 2 10:17:37 2011 +0900
[trac510] use boost::noncopyable instead of declaring private members
-----------------------------------------------------------------------
Summary of changes:
src/lib/statistics/counter.cc | 7 +++----
src/lib/statistics/counter.h | 5 ++---
2 files changed, 5 insertions(+), 7 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/statistics/counter.cc b/src/lib/statistics/counter.cc
index 5436c6d..11c0466 100644
--- a/src/lib/statistics/counter.cc
+++ b/src/lib/statistics/counter.cc
@@ -1,5 +1,7 @@
#include <vector>
#include <cassert>
+
+#include <boost/noncopyable.hpp>
#include <boost/unordered_map.hpp>
#include <statistics/counter.h>
@@ -11,10 +13,7 @@ const unsigned int InitialValue = 0;
namespace isc {
namespace statistics {
-class CounterImpl {
- private:
- CounterImpl(const CounterImpl& source);
- CounterImpl& operator=(const CounterImpl& source);
+class CounterImpl : boost::noncopyable {
private:
std::vector<Counter::Value> counters_;
public:
diff --git a/src/lib/statistics/counter.h b/src/lib/statistics/counter.h
index 073f760..0c16c3b 100644
--- a/src/lib/statistics/counter.h
+++ b/src/lib/statistics/counter.h
@@ -1,6 +1,7 @@
#ifndef __COUNTER_H
#define __COUNTER_H 1
+#include <boost/noncopyable.hpp>
#include <boost/scoped_ptr.hpp>
namespace isc {
@@ -9,10 +10,8 @@ namespace statistics {
// forward declaration for pImpl idiom
class CounterImpl;
-class Counter {
+class Counter : boost::noncopyable {
private:
- Counter(const Counter& source);
- Counter& operator=(const Counter& source);
boost::scoped_ptr<CounterImpl> impl_;
public:
typedef unsigned int Type;
More information about the bind10-changes
mailing list