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.
This commit is contained in:
Ed Catmur
2023-02-22 19:43:02 +00:00
parent 237e69caf6
commit 57ccc945bd

View File

@ -52,7 +52,7 @@ public:
, 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