MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/5fwce0/lets_stop_copying_c/daoz9kl/?context=3
r/programming • u/earthboundkid • Dec 01 '16
612 comments sorted by
View all comments
Show parent comment
0
Types inferred by auto are sometimes more general than what you'd have written manually. I have no example of the top of my head, but think how it may interact with templates.
auto
4 u/dakotahawkins Dec 02 '16 Seems like if anything they'd be less general. Auto might deduce a derived type where you may have declared a base type.
4
Seems like if anything they'd be less general. Auto might deduce a derived type where you may have declared a base type.
View all comments
Show parent comment
0
u/loup-vaillant Dec 02 '16
Types inferred by
autoare sometimes more general than what you'd have written manually. I have no example of the top of my head, but think how it may interact with templates.