BIND 10 trac2726, updated. d0080895a3a34b3e6d02c38021700e7a02245afc [2726] Make the lexer noncopyable

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Jun 12 10:24:43 UTC 2013


The branch, trac2726 has been updated
       via  d0080895a3a34b3e6d02c38021700e7a02245afc (commit)
      from  56e4d09d7b49fa6322c3ed52a2c38898d8a27046 (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 d0080895a3a34b3e6d02c38021700e7a02245afc
Author: Michal 'vorner' Vaner <vorner at vorner.cz>
Date:   Wed Jun 12 12:23:57 2013 +0200

    [2726] Make the lexer noncopyable
    
    It contains pointers, doesn't make sense to copy and writing copy
    constructors would be extra work.

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dns/master_lexer.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dns/master_lexer.h b/src/lib/dns/master_lexer.h
index 31c6443..e33f964 100644
--- a/src/lib/dns/master_lexer.h
+++ b/src/lib/dns/master_lexer.h
@@ -22,6 +22,8 @@
 
 #include <stdint.h>
 
+#include <boost/noncopyable.hpp>
+
 namespace isc {
 namespace dns {
 namespace master_lexer_internal {
@@ -303,7 +305,7 @@ private:
 /// implementation of the exception handling).  For these reasons, some of
 /// this class does not throw for an error that would be reported as an
 /// exception in other classes.
-class MasterLexer {
+class MasterLexer : public boost::noncopyable {
     friend class master_lexer_internal::State;
 public:
     /// \brief Exception thrown when we fail to read from the input



More information about the bind10-changes mailing list