3 ms·
Binding temporaries to const was a very very very old decision and it is relied on pervasively, so it would have been very painful to break. For more existentia
by gpderetta 5y ago
Binding temporaries to const was a very very very old decision and it is relied on pervasively, so it would have been very painful to break. For more existential horrors, VC6 as an extension used to allow binding temporaries to non-const references!