Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit2d09c8b018054743dcd098be08afb03e5d1ddd8d (patch)
Author
 Angel Dimitriev <achi_d@abv.bg>
2020-03-15 21:44:39 +0200
Committer
 GitHub <noreply@github.com>
2020-03-15 21:44:39 +0200
Filese40e589faa5ce8b1d97474c281985555d6676b61
Object-oriented_programming_FMI-2d09c8b018054743dcd098be08afb03e5d1ddd8d.tar
Object-oriented_programming_FMI-2d09c8b018054743dcd098be08afb03e5d1ddd8d.tar.gz
Object-oriented_programming_FMI-2d09c8b018054743dcd098be08afb03e5d1ddd8d.zip
Parent953db6cd289e582a5e0009dd5ac115f72c4343ca (diff)
Update and rename 1. uniqe_ptr to 1. uniqe_ptr.cpp
1 files changed, 1 insertions, 1 deletions
-rw-r--r--Smart_pointers/1. uniqe_ptr.cpp (renamed from Smart_pointers/1. uniqe_ptr)2
diff --git a/Smart_pointers/1. uniqe_ptr b/Smart_pointers/1. uniqe_ptr.cpp
index 6c8ef6b..c5637a4 100644
--- a/Smart_pointers/1. uniqe_ptr
+++ b/Smart_pointers/1. uniqe_ptr.cpp
@@ -46,7 +46,7 @@ int main()
unique_ptr<Test> smart_pointer_2(new Test());
- unique_ptr<Test> smart_pointer_3 = move(smart_pointer_2);
+ unique_ptr<Test> smart_pointer_3 = move(smart_pointer_2);
// unique_ptr<Test> smart_pointer_3(smart_pointer_2); //този синтаксис (както и оператор =) не е валиден! Те бяха валидни в стария и не толкова иползван auto_ptr.
smart_pointer_2.get(); // Това ще даде NULL, защото smart_pointer_3 "открадна" обекта на smart_pointer_2