cpp test passby value vs. passby ref