This video talks about an important resource management pitfall in C 03 (C 11 is not discussed here). When you class owns another object by its pointer, you should either: a) define deep copying for copy constructor and assignment operator; b) delete copy constructor and assignment operator, and use clone() function.
As Klemens kindly pointed out: at 5:40, the accessor is not needed as it is accessed only by the same class.
77 views
504
140
2 months ago 00:11:22 1
Advanced C #1: function pointers
2 months ago 00:00:00 1
Стрим на Rodina RP на Северном Округе/ рулетка/ мпшки/ розыгрыш/ номерные знаки #shorts
2 months ago 00:16:52 1
Сравнение новых псевдоклассов CSS — :is() :where() :has()