Scott Meyers says (for parameters to function templates):
Universal references can only occur in the form "
T&&
"! Even the simple addition of aconst
qualifier is enough to disable the interpretation of "&&
" as a universal reference.
Why doesn't C++ have a const
universal reference? Any technical reason?