Another attempt to implement a workaround for OpenMP with STL iterators.