1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-01 04:20:39 +02:00

Now that we explained move semantics

This commit is contained in:
Geoff Liu
2015-08-30 14:46:46 -06:00
parent a230d76307
commit fc9ae44e48

View File

@@ -751,7 +751,8 @@ pt2 = nullptr; // Sets pt2 to null.
// '=' != '=' != '='! // '=' != '=' != '='!
// Calls Foo::Foo(const Foo&) or some variant copy constructor. // Calls Foo::Foo(const Foo&) or some variant (see move semantics) copy
// constructor.
Foo f2; Foo f2;
Foo f1 = f2; Foo f1 = f2;