Skip to content
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

My solution for Vector of shared ptrs #1408

Prev Previous commit
Next Next commit
Fix print function declaration
pawelprotas committed Dec 22, 2024
commit ac627c33470bdf6dd1c2e422f4081d146aa0860a
2 changes: 1 addition & 1 deletion homework/vector-of-shared-ptrs/vectorFunctions.hpp
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
#include <memory>

std::vector<std::shared_ptr<int>> generate(int count);
void print(const std::vector<std::shared_ptr<int>> &vector);
void print(std::vector<std::shared_ptr<int>> vector);
void add10(std::vector<std::shared_ptr<int>> vector);
void sub10(int* const ptr);
void sub10(std::vector<std::shared_ptr<int>> vector);