A response to Scott Meyers' recent article on Universal References, showing an analogy between &&
-collapsing and const
-collapsing, and making the counterargument that inventing a new concept may not be needed to clearly explain the standard. It's always interesting to see different experts' takes on how to understand and teach a feature, particularly a new C++11 feature that we as a community are still absorbing.
Universal References
by Ben Hekster
... The ‘universal reference’ is not a concept you will see defined in the C++ standard, nor is it even something that has any conceptually objective existence in the language or compilation process. It is a construct defined by Meyers in an attempt to make some sense of behavior in the language that he presents as being unexpected or even mysterious. On closer inspection, however, I find that the observed mysterious behavior is actually quite readily explained and has an existing analog that corresponds to already intuitively-understood behavior. ...
Add a Comment
Comments are closed.