https://stackoverflow.com/questions/5861722/force-boostasiobuffer-to-copy-by-value