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.
44 views
88
28
2 months ago 00:00:00 2
ТАНКИ НА ЗАКАЗ - ГАЙД ПО ВАШЕМУ ТАНКУ (ЧИТАЙТЕ ОПИСАНИЕ)
2 months ago 01:44:33 1
Book launch — Trotsky(ism): Tool of Imperialism
2 months ago 00:12:35 1
How Trump’s Team Uses Quantum Computers - Alex Collier Explains!
3 months ago 00:00:00 1
ТАНКИ НА ЗАКАЗ (ЧИТАЙТЕ ОПИСАНИЕ)
3 months ago 00:13:57 1
Why did Davy Jones Look SO Realistic?
4 months ago 00:24:56 1
Harvest Time🔥Russians Advance Further🎖Zelensky Still Rejects Peace⚔️Military Summary For
4 months ago 00:22:02 1
Ozzy Osbourne Finally Gets His Due: Hall of Fame Induction
4 months ago 00:01:29 3
БЕСПЛАТНАЯ СБОРКА ДЛЯ АКСОВЫХ МП ДЛЯ ЛАУНЧЕРА! / gta in desc
4 months ago 01:35:50 1
Iran Absorbs Strike, Limits Harm, Offers Off-Ramp; Ukr South Donbass Disaster; Rus Advance, Ukr Flee