However, the number of people begging on the streets is still rising sharply, so I don't think it is the silver bullet everyone thinks it is.
NB: some people are there by "choice" because some shelters are so chaotic it is better to be out on the streets. Some have lived outside for so long that they do not like living inside. I'm not saying that the situation couldn't be improved, but the core issue is addiction IMO to get rid of 'visible' "homelessness".
There is also a huge problem that so many people are living in "temporary" accommodation for years waiting for social housing.
The key point I'd say is the problem with homelessness is addiction treatment (and the lack of it). You can give these people houses but without treatment they will still be begging on the street. One alternative would be to prescribe heroin which I think could work, but crack/meth is different - very hard to keep people on any sort of maintenance dose of those drugs and most of the "chaotic people" are addicted to an opiate and a stimulant.
I've started doing volunteer work in this space for the past few years and it really has opened my eyes to the real problems with it. Housing is a prerequisite to the solution but it is not a solution itself, unfortunately. I didn't realise this before volunteering.