[range] Make iterator of 'indexed' adaptor default-constructible (refs #7827).

[SVN r84617]
This commit is contained in:
Nathan Ridge
2013-06-03 09:00:46 +00:00
parent 1c18f42e83
commit c908e04144
3 changed files with 33 additions and 0 deletions
+6
View File
@@ -15,11 +15,14 @@
#include <boost/assign.hpp>
#include <boost/range/algorithm_ext.hpp>
#include <boost/range/concepts.hpp>
#include <algorithm>
#include <list>
#include <vector>
#include "../test_utils.hpp"
namespace boost
{
namespace
@@ -83,6 +86,9 @@ namespace boost
{
indexed_test_impl< std::vector< int > >();
indexed_test_impl< std::list< int > >();
check_random_access_range_concept(std::vector<int>() | boost::adaptors::indexed(0));
check_bidirectional_range_concept(std::list<int>() | boost::adaptors::indexed(0));
}
}
}