Skip to content

Commit

Permalink
Update vectorFunctions.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Josseye authored Feb 27, 2024
1 parent ea8fff6 commit bc5ee6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homework/vector-of-shared-ptrs/vectorFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

std::vector<std::shared_ptr<int>> smartvector;
std::vector<std::shared_ptr<int>> generate(int count) {
int i = 0;
for (i; i<count; ++i){
size_t i = 0;
for (i; i < count; ++i){
smartvector.push_back(std::make_shared<int>(10+i));
}
return smartvector;
Expand Down

0 comments on commit bc5ee6e

Please sign in to comment.