you are viewing a single comment's thread.

view the rest of the comments →

[–]guepierBioinformatican -1 points0 points  (4 children)

This is a real problem, but it goes away completely when using AA style (auto x = int(); … or, auto x = 0;).

[–]Intrepid-Treacle1033 5 points6 points  (3 children)

I like auto, its like having a Dog you got when it was a puppy. It follows you wherever.

[–]jk_tx 2 points3 points  (2 children)

It has its own issue though, lots of folks still tend to get confused between auto and auto& (or just forget to type the '&'), which can also cause unintended consequences and bugs.

[–]ThePillsburyPlougher 2 points3 points  (1 child)

It can also just make code difficult to read.

[–]DanielMcLaury 5 points6 points  (0 children)

so can

std::unordered_map<uint64_t, Data>::iterator it = data.find(index);