the main function i use only the stack for defining objects?
Yes dtor must be implemented, either by you or the compiler. Even objects on the stack needs destruction.
read this page and adapt to your case https://en.cppreference.com/w/cpp/language/rule_of_three
Обсуждают сегодня