forked from pezy/CppPrimer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed move bug of 13.49 Message class
- Loading branch information
Showing
4 changed files
with
127 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Unit Test for exercise 13_49_Message. | ||
|
||
#include "ex13_49_Message.h" | ||
|
||
int main() | ||
{ | ||
Message firstMail("hello"); | ||
Message signInMail("welcome to cppprimer"); | ||
Folder mailBox; | ||
|
||
firstMail.save(mailBox); | ||
signInMail.save(mailBox); | ||
mailBox.print_debug(); | ||
|
||
firstMail = std::move(signInMail); | ||
mailBox.print_debug(); | ||
} |