Commit d0080895 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2726] Make the lexer noncopyable

It contains pointers, doesn't make sense to copy and writing copy
constructors would be extra work.
parent 56e4d09d
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
#include <stdint.h> #include <stdint.h>
#include <boost/noncopyable.hpp>
namespace isc { namespace isc {
namespace dns { namespace dns {
namespace master_lexer_internal { namespace master_lexer_internal {
...@@ -303,7 +305,7 @@ private: ...@@ -303,7 +305,7 @@ private:
/// implementation of the exception handling). For these reasons, some of /// implementation of the exception handling). For these reasons, some of
/// this class does not throw for an error that would be reported as an /// this class does not throw for an error that would be reported as an
/// exception in other classes. /// exception in other classes.
class MasterLexer { class MasterLexer : public boost::noncopyable {
friend class master_lexer_internal::State; friend class master_lexer_internal::State;
public: public:
/// \brief Exception thrown when we fail to read from the input /// \brief Exception thrown when we fail to read from the input
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment