And if you include women (well, all genders) directly in the war efforts you double the amount of soldiers you have, which would increase your chance of winning and not needing to repopulate.
Someone has to stay behind and make ammunition.
If you refuse to fight, you lose.
If you all agree to refuse to fight, you win.
https://en.wikipedia.org/wiki/Prisoner%27s_dilemma
The key here is to refuse fighting. Nobody becomes a hero by becoming a murderer whose goal is to defend the political power of Stalin, Napoleon, Bush, or whoever.
You can lose a war, yet still keep your country. You can also win a war, yet still need to repopulate.