
21 Jun
2013
21 Jun
'13
4:35 p.m.
On 21 June 2013 06:56, John Maddock
Nearly all operators, besides assigning and dereferencing ones, are
supposed to return by value. Changing that, even with the “innocuous” (unary)+, is surprising.
This came up in review actually with no good solution - the main issue (apart from no one ever using unary + anyway)
I wouldn't quite say that... My use case is: unsigned char u = 100; std::cout << +u << std::endl; (since it is far shorter than all the alternatives). -- Nevin ":-)" Liber mailto:nevin@eviloverlord.com (847) 691-1404