Re:Popular Myths about C++, Part 1
by netheril96 on Tuesday December 09, 2014 @10:18PM
(#8727497)
What he has in mind is that it is logical and reasonable for C++ to behave in this way, but completely incomprehensible for beginners who has just learned the basics of programming.
>> vector<int> v = {1,2,3,5,8,13};
>>This is great, of course. The example after that introduces "auto" so you don't have to write the type of a variable. Well heck, let's combine the two!
>> auto v = {1,2,3,5,8,13};
The auto example creates an std::initializer_list which then can be converted into a vector or a set
Which seems the best you can expect with auto deduction. What else do you have in mind?