Browse Source

[2097] make RdataSet noncopyable.

it was indeed not expected to be copyable.  making this explicit would help
prevent accidental misuse.
as suggested in review.
JINMEI Tatuya 12 years ago
parent
commit
a851fd5127
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/datasrc/memory/rdataset.h

+ 2 - 1
src/lib/datasrc/memory/rdataset.h

@@ -23,6 +23,7 @@
 #include <dns/rrttl.h>
 
 #include <boost/interprocess/offset_ptr.hpp>
+#include <boost/noncopyable.hpp>
 
 #include <stdint.h>
 
@@ -110,7 +111,7 @@ public:
 /// assume any particular format of data in this region directly; it must
 /// get access to it via public interfaces provided in the main \c RdataSet
 /// class.
-class RdataSet {
+class RdataSet : boost::noncopyable {
 public:
     /// \brief Allocate and construct \c RdataSet
     ///