> How on earth does this work?

@CyberShadow probably knows. WorksForMe(tm) though.

> Urrgh, licensing. I think for now I'd like to put this under boost, I have no idea if MPL is compatible.

No idea, I just quickly tried to find some code snippet that did this. Maybe @CyberShadow would be ok with letting this become Boost-licensed?