Apply patch from #8476.
Fixes #8476.

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