We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e65b72e + 21faa44 commit 94b1b22Copy full SHA for 94b1b22
C++ Syntax.md
@@ -514,7 +514,8 @@ Copy constructors and copy assigment operators allow one object to be constructe
514
```c++
515
Foo a(10);
516
Foo b(a); // (1): Copy via constructor
517
-Foo c = a; // (2): Copy via assignment operator
+Foo c ;
518
+c = a; // (2): Copy via assignment operator
519
```
520
521
This is accomplished by supplying a copy constructor and an assigment operator overload, both of which have a special syntax
0 commit comments