[boost] iterator_category> algorithm selection with cast operator