Apply updated patches from #8476.
Fixes #8476.

svn path=/trunk/boost/regex/; revision=84052