[boost] Question about optimizations in Boost.Regex