Website Summary Files Commits Branches @commit @diff @stats
path: root / Smart_pointers
diff options
context:
space:
mode:
Commit96794e3e91003c5b64dd9034e5d4e061b0a5f94c (patch)
Author
 Angel Dimitriev <achi_d@abv.bg>
2020-03-15 22:24:34 +0200
Committer
 GitHub <noreply@github.com>
2020-03-15 22:24:34 +0200
Files243f2fa30d58b849144543cbbcf3deb9259bac49 /Smart_pointers
Object-oriented_programming_FMI-96794e3e91003c5b64dd9034e5d4e061b0a5f94c.tar
Object-oriented_programming_FMI-96794e3e91003c5b64dd9034e5d4e061b0a5f94c.tar.gz
Object-oriented_programming_FMI-96794e3e91003c5b64dd9034e5d4e061b0a5f94c.zip
Parentee0531b5ad2e643813405a99584a931c97fd7c1f (diff)
Update 1. uniqe_ptr.cpp
1 files changed, 1 insertions, 1 deletions
-rw-r--r--Smart_pointers/1. uniqe_ptr.cpp2
diff --git a/Smart_pointers/1. uniqe_ptr.cpp b/Smart_pointers/1. uniqe_ptr.cpp
index 1b2f9eb..5459c63 100644
--- a/Smart_pointers/1. uniqe_ptr.cpp
+++ b/Smart_pointers/1. uniqe_ptr.cpp
@@ -38,7 +38,7 @@ int main()
Test* obj = smart_pointer_1.get(); //От тук иматаме достъп до паметта, към която сочи пойнтера.
//delete obj; // Това не трябва да се прави! smart_pointer_1 не знае, че паметта е освободена и ще се опита да я освободи, което ще доведе до грешка!
- } //Test (Паметта се освобождава сама)
+ } // Detructor (Паметта се освобождава сама, след премахването на пойнтера)
{