Forum: C++ Mar 5th, 2009 |
| Replies: 6 Views: 690 Of course, if you put the delete statement after the return statement, it won't be executed at all. Instead you can do like |
Forum: C++ Feb 9th, 2009 |
| Replies: 4 Views: 625 only the first example invokes copy constructor. If the second one needs to work in the same manner as copy constructor does, you have to overload the assignment operator. |