From 44af738d19486095c0fbc2ef2b359a298126ac2b Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 21 Dec 2018 01:59:37 -0500 Subject: [PATCH] [iter] Showcase implicit casts --- src/test-iter.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test-iter.cc b/src/test-iter.cc index 6427ca0a1..045c2a1aa 100644 --- a/src/test-iter.cc +++ b/src/test-iter.cc @@ -48,9 +48,10 @@ main (int argc, char **argv) { const int src[10] = {}; int dst[20]; + hb_vector_t v; - array_iter_t s (src); - array_iter_t s2 (src); + array_iter_t s (src); /* Implicit conversion from static array. */ + array_iter_t s2 (v); /* Implicit conversion from vector. */ array_iter_t t (dst); s2 = s;