template Z myTemplate :: popFromVector () { if (myVector.empty () == false) return myVector.pop_back (); return 0; } int m
It's the pop_back(). It has a void return type. You have to use back() to get the actual value. This is to avoid unnecessary copies.
pop_back()
back()