提交 3dea9aff 编写于 作者: B Behdad Esfahbod

[iter] Test default-constructability

上级 743ff093
...@@ -65,6 +65,8 @@ struct some_array_t ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册