Похожие чаты

Would you say implementing destructor is a most? even if in

the main function i use only the stack for defining objects?

3 ответов

5 просмотров

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

Похожие вопросы

Карта сайта