id summary reporter owner description type status milestone component version severity resolution keywords cc 8338 Iterator range does not work with pointer to array as iterator Nathan Ridge Neil Groves "The following code: {{{ #include template boost::iterator_range one_element_range(const T& t) { return boost::iterator_range(&t, &t + 1); } int main() { one_element_range(""foo""); } }}} fails to compile with the following error: {{{ In file included from test.cpp:1: In file included from boost/range/iterator_range.hpp:13: boost/range/iterator_range_core.hpp:349:12: error: function cannot return array type 'abstract_value_type' (aka 'char [4]') abstract_value_type operator()( difference_type at ) const ^ test2.cpp:11:5: note: in instantiation of template class 'boost::iterator_range' requested here one_element_range(""foo""); ^ }}} I think this use case (pointer to an array as an iterator) should be supported." Bugs closed To Be Determined range Boost Development Trunk Problem fixed