template Z myTemplate :: popFromVector () { if (myVector.empty () == false) return myVector.pop_back (); return 0; } int m
std::vector::pop_back() returns void. You attempt to return it as an int. This is not allowed.
std::vector::pop_back()