From c853f3c48a225036f27056287fc25d85e8b837df Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Thu, 22 Feb 2024 19:01:06 -0800 Subject: working with moves --- Project1/contact.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Project1/contact.cpp') 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) { -- cgit v1.2.3