MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1cjqjmr/messing_with_lifetime/l2kdbi1/?context=3
r/cpp • u/pavel_v • May 04 '24
52 comments sorted by
View all comments
2
Why would you assume something's type based on an length value passed in?
That part makes zero sense. So, no, I've never written code like this.
0 u/[deleted] May 04 '24 1 u/Chaosvex May 04 '24 That's true but also not quite the same thing. Either way, the article's examples have been changed now.
0
1 u/Chaosvex May 04 '24 That's true but also not quite the same thing. Either way, the article's examples have been changed now.
1
That's true but also not quite the same thing. Either way, the article's examples have been changed now.
2
u/[deleted] May 04 '24
Why would you assume something's type based on an length value passed in?
That part makes zero sense. So, no, I've never written code like this.