Am 12.11.2013 02:23, schrieb wy:
> So "int &&" attempts to declare a reference to a reference,
No. Careful. && is a single token. What you should have written is:
int & &
with a space in between the ampersands. But since this doesn't work
anyways, you can just forget about it. :)
Starting with C++11 the double-ampersand (as single token) can also be
used to declare a reference. It's another kind of reference:
int & lvalue reference to int
int && rvalue reference to int (NOT a ref to a ref!)
> "int &*" attempts to declare a pointer to a reference, right?
Yes. But this also does not work, because a reference it not an object.
You can only create pointers to objects or pointers to functions.