From 57ccc945bd17314efdd48edf4c76bc4933c74330 Mon Sep 17 00:00:00 2001 From: Ed Catmur Date: Wed, 22 Feb 2023 19:43:02 +0000 Subject: [PATCH] Default empty destructor. The compiler-generated copy constructor and copy assignment operator are deprecated since C++11 on classes with user-declared destructors. This change allows clean compilation with the -Wdeprecated-copy-dtor/-Wdeprecated-copy-with-user-provided-dtor flag. --- include/boost/regex/v5/pattern_except.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/regex/v5/pattern_except.hpp b/include/boost/regex/v5/pattern_except.hpp index 3fbdca0a2..d71a32b7b 100644 --- a/include/boost/regex/v5/pattern_except.hpp +++ b/include/boost/regex/v5/pattern_except.hpp @@ -52,7 +52,7 @@ class regex_error : public std::runtime_error , m_position(0) { } - ~regex_error() noexcept override {} + ~regex_error() noexcept override = default; regex_constants::error_type code()const { return m_error_code; } std::ptrdiff_t position()const