Reply to post:

What's all the C Plus Fuss? Bjarne Stroustrup warns of dangerous future plans for his C++

parperback parper

Although you're better off avoiding the auto if you're using a non-templated function.

That way your IDE will know what type it is, and you'll get a nice compiler error message if someone changes the type of v without telling you.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon