Skip to content

Commit 3c63f13

Browse files
chavidhageboeck
andauthored
Add a shared_ptr
Co-authored-by: Stephan Hageboeck <stephan.hageboeck@cern.ch>
1 parent 0c44013 commit 3c63f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/smartPointers/problem3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* Most of the time, ownership can be solved by having one owner (with `std::unique_ptr`) and
1414
* one or more observers (raw pointers or references). Sometimes, we need to truly share data,
15-
* though. Here is an example of a completely messed up ownership model.
15+
* though. Here is an example of a completely messed up ownership model, which could be fixed using shared_ptr.
1616
*
1717
* Tasks
1818
* 1) Verify the mess by repeatedly running it using such a command like:

0 commit comments

Comments
 (0)