Website Summary Files Commits Branches @commit @diff @stats
path: root / Smart_pointers / 1. uniqe_ptr.cpp
diff options
context:
space:
mode:
Commit4e289d5e1f6234f3460d414764f9e326f8c79f04 (patch)
Author
 Angel Dimitriev <achi_d@abv.bg>
2020-03-16 01:20:38 +0200
Committer
 GitHub <noreply@github.com>
2020-03-16 01:20:38 +0200
Files316574ce69b757e889f0fe5fa9fd9404ec219daa /Smart_pointers/1. uniqe_ptr.cpp
Object-oriented_programming_FMI-4e289d5e1f6234f3460d414764f9e326f8c79f04.tar
Object-oriented_programming_FMI-4e289d5e1f6234f3460d414764f9e326f8c79f04.tar.gz
Object-oriented_programming_FMI-4e289d5e1f6234f3460d414764f9e326f8c79f04.zip
Parent96794e3e91003c5b64dd9034e5d4e061b0a5f94c (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 5459c63..a865776 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 не знае, че паметта е освободена и ще се опита да я освободи, което ще доведе до грешка!
- } // Detructor (Паметта се освобождава сама, след премахването на пойнтера)
+ } // Detructor (Паметта се освобождава сама след премахването на пойнтера)
{