-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replace for(auto <var> to for(auto& <var> #760
replace for(auto <var> to for(auto& <var> #760
Conversation
working with reference and not with copies => Performance issue
I think the raw iterator don't needs change to for (auto& item : items)
item.callSomeMethod(); |
Correct! This one & was to much. Sorry. (removed it) |
@halx99 At the moment a don't changing anything on thirtparty folders |
The |
I know. |
Using c++11 std::vector<bool> items1 = {false};
for(auto&& item : items1)
item = true;
const std::vector<bool> items2 = {true};
for (auto&& item : items2)
printf("item=%d\n", (int)item);
|
Should I change ALL |
Yes, you can, the |
Also for the 'extension' folder? The ThirtParty folder will be untouched |
Yes, but should ignore |
finished. |
working with reference and not with copies
=> Performance issue
solve feature: #759