Use the make_shared function to create the shared_ptr.