[range] allow iterator_range to be instantiated with a pointer to an array as the iterator type (refs #8338)

[SVN r83596]
This commit is contained in:
Nathan Ridge committed 2013-03-27 02:16:11 +00:00
1 parent 4971da58ee
commit fe79a8efdd
2 files changed
+9 -1

No files matched your search

+5
View File
@@ -101,6 +101,11 @@ void check_iterator_range()
BOOST_CHECK( rrr == str );
check_reference_type();
// Check that an iterator range can be instantiated with
// a pointer to an array as an iterator.
int arr[2][2];
boost::make_iterator_range(arr, arr + 2);
}
namespace iterator_range_test_detail