O'Reilly logo
  • Jiajia Cong thinks this is interesting:

return (x); // decltype((x)) is int&, so f2 returns int&

From

Cover of Effective Modern C++

Note

NOTE: decltype((a + b)); is int not int&, because (a + b) is rvalue