Add copy constructor to ErrorReporter (since it has assignment operator)

This commit is contained in:
Alex Beregszaszi 2017-08-21 22:22:20 +01:00
parent ec6d8007db
commit 774363eb74

View File

@ -39,6 +39,9 @@ public:
explicit ErrorReporter(ErrorList& _errors): explicit ErrorReporter(ErrorList& _errors):
m_errorList(_errors) { } m_errorList(_errors) { }
ErrorReporter(ErrorReporter const& _errorReporter) noexcept:
m_errorList(_errorReporter.m_errorList) { }
ErrorReporter& operator=(ErrorReporter const& _errorReporter); ErrorReporter& operator=(ErrorReporter const& _errorReporter);
void warning(std::string const& _description); void warning(std::string const& _description);