29 Dec
2016
29 Dec
'16
12:19 a.m.
On Tue, Dec 27, 2016 at 4:47 PM, Olaf van der Spek
One frequently needs to append stuff to strings, but the standard way (s += "A" + "B" + to_string(42)) isn't optimal due to temporaries.
Can't we already write it through (((s += "A") += "B") += to_string(42))? This is the time I think that assignment operators, other than =, should have had left associativitiy... pity they don't. -- Yakov Galka http://stannum.co.il/