# 由Compare Version Numbers想到的边界条件问题

|

while (ver1.back() == 0) ver1.pop_back();


while (ver1.back() == 0 && ver1.size() > 0) ver1.pop_back();


Disclaimer: This is a personal weblog. The opinions expressed here represent my own and not those of any entity with which I have been, am now, or will be affiliated.