| ▲ | Sesse__ 3 days ago | |
The article specifically points out that this isn't about optimization. A temporary will not be created even with -O0 (you can observe this by putting logging into the copy and move constructors). | ||
| ▲ | quuxplusone 3 days ago | parent [-] | |
Or even =delete'ing them or (carefully) putting static_asserts inside them. They're not called, not instantiated, not nothing. | ||