[iter] Test default-constructability

This commit is contained in:
Behdad Esfahbod 2018-12-26 19:56:37 -05:00
parent 743ff09368
commit 3dea9affda
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ struct some_array_t
template <typename Iterator> static void
test_iterator (Iterator it)
{
Iterator default_constructed;
/* Iterate over a copy of it. */
for (auto c = it.iter (); c; c++)
*c;