I would think that our immensely wealthy societies should be able to offer some (spartan) shelter and food to people who are out on their luck and only then prohibit vagrancy (with the threat of compulsory temporary 'residence' in even more spartan surroundings).