Modernize: Use "default" for destructors and copy constructors (#751)

This commit is contained in:
Andy Maloney
2019-10-02 09:38:49 -04:00
committed by Jesse Beder
parent e6b3a92e67
commit a6ed66abca
15 changed files with 29 additions and 34 deletions

View File

@@ -34,7 +34,7 @@ class YAML_CPP_API RegEx {
explicit RegEx(char ch);
RegEx(char a, char z);
RegEx(const std::string& str, REGEX_OP op = REGEX_SEQ);
~RegEx() {}
~RegEx() = default;
friend YAML_CPP_API RegEx operator!(const RegEx& ex);
friend YAML_CPP_API RegEx operator|(const RegEx& ex1, const RegEx& ex2);