1: // Created by Frank M. Carrano and Timothy M. Henry.
2: // Copyright (c) 2017 Pearson Education, Hoboken, New Jersey.
4: void magicFunctionRaw()
5: {
6: MagicBox<std::string>* myMagicPtr = new MagicBox<std::string>();
7: std::cout << myMagicPtr –>getItem() << std::endl;
8: delete myMagicPtr;
9: myMagicPtr = nullptr;
10: } // end magicFunctionRaw