Explicitly delete copy c-tor and operator for DefaultErrorStrategy.

This class holds a vector of unique_ptr instances and hence cannot be copied.
This commit is contained in:
Mike Lischke 2016-09-25 11:48:18 +02:00
parent 3b98c1136e
commit 28eb19f52e
1 changed files with 3 additions and 0 deletions

View File

@ -43,8 +43,11 @@ namespace antlr4 {
class ANTLR4CPP_PUBLIC DefaultErrorStrategy : public ANTLRErrorStrategy {
public:
DefaultErrorStrategy();
DefaultErrorStrategy(DefaultErrorStrategy const& other) = delete;
virtual ~DefaultErrorStrategy();
DefaultErrorStrategy& operator = (DefaultErrorStrategy const& other) = delete;
protected:
/**
* Indicates whether the error strategy is currently "recovering from an