The destructor was missing a `= default;` specifier, which is now added to ensure proper object cleanup.