Classes part 3 - Copy Constructor, Copy Assignment(Deep and Shallow Copy) | Modern Cpp Series Ep. 39
►Full C++ Series Playlist: • The C++ Programming Language ►Find full courses on: https://courses.mshah.io/ ►Join as Member to Support the channel: / @mikeshah ►Lesson Description: In this lesson I cover the copy constructor, and copy assignment operator. I start by showing how the compiler gives you these two special functions for classes for free, using the compiler generated ones. Unfortunately, this is not sufficient, as when we have to dynamically allocate memory, the trivial copy can result in problems like double frees or unwanted sharing of data. Next I show you how to avoid making these 'shallow' copies, and write your own copy constructor and copy-assignment operators to perform a deep copy. ►YouTube Channel: / mikeshah ►Please like and subscribe to help the channel!

Classes part 4 - The Rule of 3 (and the lesser known Law of the Big Two) | Modern Cpp Series Ep. 40

lvalue, rvalue, lvalue references and an intro to rvalue references | Modern Cpp Series Ep. 31

Difference between copy constructor and assignment operator in C++ (OOP tutorial for beginners)

C++ Classes part 2 - Default Constructor, default destructor, and more! | Modern Cpp Series Ep. 38

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub & Why Zig Isn’t 1.0 - Andrew Kelley Explains

Copying and Copy Constructors in C++

Classes part 6 - Operator overloading | Modern Cpp Series Ep. 42

Back to Basics: Move Semantics (part 1 of 2) - Klaus Iglberger - CppCon 2019

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

C++ Lambdas Part 1 - Unnamed function objects (closures) in C++ | Modern Cpp Series Ep. 100!!!

Trump Sells UFC Coins as Iran Strikes & Melania Pushes AI in a Speech Worthy of AI | The Daily Show

CppCon 2014: Mike Acton "Data-Oriented Design and C++"

Classes part 5 - Avoiding copies(Delete, copy ctor and pass by ref) | Modern Cpp Series Ep. 41

Generics in C++ 5 - Variadic arguments and Variadic Function Templates | Modern Cpp Series Ep. 75

Inside Anthropic, the $965 Billion AI Juggernaut | The Circuit

"Clean" Code, Horrible Performance

How Much Memory for 1,000,000 Threads in 7 Languages | Go, Rust, C#, Elixir, Java, Node, Python

C++ Casting - Part 3 - static_cast and dynamic_cast (mega lesson) | Modern Cpp Series Ep. 94

