void fn() {}
void (&lref)() = fn;
void (&&rref)() = fn;
int main() {}
It compiles well under g ++ 4.8.1.
So, it fnis an expression, and the expression must have a category in accordance with the ISO standard.
What category does the expression belong to before automatic type promotion is performed (since both links can accept the result of evaluating the expression fn)?
source
share