Why parameters of universal reference needs to be casted, before used?
问题 In the lecture about universal references, Scott Meyers (at approximately 40th minute) said that objects that are universal references should be converted into real type, before used. In other words, whenever there is a template function with universal reference type, std::forward should be used before operators and expressions are used, otherwise a copy of the object might be made. My understanding of this is in the following example : #include <iostream> struct A { A() { std::cout<<"constr"