diff options
| author | Connor McDowell <[email protected]> | 2024-02-22 19:01:06 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-02-22 19:01:06 -0800 |
| commit | c853f3c48a225036f27056287fc25d85e8b837df (patch) | |
| tree | 5ff40149806f29cdaf9c5ba41ff23a2d501b6163 /Project1/contact.cpp | |
| parent | overload op completed (diff) | |
| download | in-class-exercise-14-connormcdowell275-c853f3c48a225036f27056287fc25d85e8b837df.tar.xz in-class-exercise-14-connormcdowell275-c853f3c48a225036f27056287fc25d85e8b837df.zip | |
working with moves
Diffstat (limited to 'Project1/contact.cpp')
| -rw-r--r-- | Project1/contact.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Project1/contact.cpp b/Project1/contact.cpp index c6d670f..e4ba37e 100644 --- a/Project1/contact.cpp +++ b/Project1/contact.cpp @@ -25,6 +25,12 @@ contact& contact::operator=(const contact& rhs) return *this; } +contact::contact(contact&& move) +{ + *this = move; + //also *this = std::move(move); +} + void contact::Set_firstName(const char* firstName) { |