Toasted sub?!?

Jj
Soo know we can't eat deli meat but what if it's a toasted sub. I really want an Italian sub what if they heat the meat then toast the meat on the bread would that be ok? That should kill listeria right?