Chapter 2
Functions
Section 6
Working with const or r-value References
A temporary object cannot be passed as an argument for a reference parameter. To accept temporary parameters, we need to use const references or r-value references. The r-value references are references that are identified by two ampersands, &&, and can only refer to temporary values. This video explains this in further detail.