Unexpected Implications
Explore the effects of using const with local member variables in C++ classes. Understand why classes containing const members become non-assignable and cannot use move semantics. This lesson clarifies the practical implications for assignment and compiler-generated functions.
We'll cover the following...
We'll cover the following...
Classes become not assignable
Unfortunately, there are some surprising implications of using const. The first is that ...