workaround iterator_category misdetection