January 2020
Intermediate to advanced
454 pages
11h 25m
English
In this recipe, we will learn why a move constructor or operator should never be marked const (and why a copy constructor/operator is always marked as const). This is important because it gets to the heart of the difference between a move and a copy. Move semantics in C++ is one of its most powerful features and understanding why it is so important and what it is actually doing is critical to writing good C++ code.