Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 11
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rw-r--r--Sem. 11/example/main.cpp4
diff --git a/Sem. 11/example/main.cpp b/Sem. 11/example/main.cpp
index a7a00f6..80fef69 100644
--- a/Sem. 11/example/main.cpp
+++ b/Sem. 11/example/main.cpp
@@ -7,11 +7,11 @@ Person createPerson(const char* name, int age)
{
Person p(name, age);
- return p;
+ return std::move(p);
}
int main()
{
Person p2("Petur",18);
p2 = createPerson("Ivan", 23);
-} \ No newline at end of file
+}