[iter] Test default-constructability
This commit is contained in:
parent
743ff09368
commit
3dea9affda
|
@ -65,6 +65,8 @@ struct some_array_t
|
||||||
template <typename Iterator> static void
|
template <typename Iterator> static void
|
||||||
test_iterator (Iterator it)
|
test_iterator (Iterator it)
|
||||||
{
|
{
|
||||||
|
Iterator default_constructed;
|
||||||
|
|
||||||
/* Iterate over a copy of it. */
|
/* Iterate over a copy of it. */
|
||||||
for (auto c = it.iter (); c; c++)
|
for (auto c = it.iter (); c; c++)
|
||||||
*c;
|
*c;
|
||||||
|
|
Loading…
Reference in New Issue