You could use a reference here as well if you like, given that you go and pop it afterwards (not a big deal - only a tiny memcpy anyway).