Skip to content

Commit

Permalink
Add a shared_ptr
Browse files Browse the repository at this point in the history
Co-authored-by: Stephan Hageboeck <[email protected]>
  • Loading branch information
chavid and hageboeck authored Sep 29, 2024
1 parent 0c44013 commit 3c63f13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/smartPointers/problem3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* Most of the time, ownership can be solved by having one owner (with `std::unique_ptr`) and
* one or more observers (raw pointers or references). Sometimes, we need to truly share data,
* though. Here is an example of a completely messed up ownership model.
* though. Here is an example of a completely messed up ownership model, which could be fixed using shared_ptr.
*
* Tasks
* 1) Verify the mess by repeatedly running it using such a command like:
Expand Down

0 comments on commit 3c63f13

Please sign in to comment.