4 ms·
"copy propagation" sounds like he's got two things mixed up: Copy elision and constant propagation. Each one of these are important for zero-cost abstractions,
by brandmeyer 6y ago
"copy propagation" sounds like he's got two things mixed up: Copy elision and constant propagation. Each one of these are important for zero-cost abstractions, IMO.
- roca 6y agoI mean this: https://en.wikipedia.org/wiki/Copy_propagation https://en.wikipedia.org/wiki/Copy_propagation
- brandmeyer 6y agoWith respect to zero-cost abstractions, its copy elision that matters. operator= is just another function in C++, for example. Only in a handful of specific circumstances is the compiler allowed to elide calls to operator=.