提交 44af738d 编写于 作者: B Behdad Esfahbod

[iter] Showcase implicit casts

上级 879faa2a
......@@ -48,9 +48,10 @@ main (int argc, char **argv)
{
const int src[10] = {};
int dst[20];
hb_vector_t<int> v;
array_iter_t<const int> s (src);
array_iter_t<const int> s2 (src);
array_iter_t<const int> s (src); /* Implicit conversion from static array. */
array_iter_t<const int> s2 (v); /* Implicit conversion from vector. */
array_iter_t<int> t (dst);
s2 = s;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册