Community
Participate
Working Groups
When editing this code vector<int> v = { 1, 2, 3 }; for (auto e : v) { std::cout << e << std::endl; } I got 'endl' underlined in red with the error message "Invalid overload of 'endl'" (which of course makes no sense). If I replace 'auto' by 'int', there is no error. Besides, when 'auto' is not used in a ranged-based for loop (including regular for loop), everything is fine. -- Configuration Details -- Product: Eclipse 1.4.1.20110909-0613 (org.eclipse.epp.package.cpp.product) Installed Features: org.eclipse.platform 3.7.1.r37x_v20110729-9gF7UHOxFtniV7mI3T556iZN9AU8bEZ1lHMcVK
Implementation for auto-types in range-based for loops (bug 332883) was incomplete. Added testcase and fix.
*** cdt git genie on behalf of Markus Schorn *** Bug 359653: Range based for loop with auto type. [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=0137349b87b20b17dff07ef0285d664199e92bfe
*** cdt git genie on behalf of Markus Schorn *** Bug 359653: Range based for loop with auto type. [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=682b3bbf7ba15b748f05a91b61b672051fc940b4