mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-30 10:04:24 +01:00
[iter] Showcase implicit casts
This commit is contained in:
1 parent
879faa2aee
commit
44af738d19
1 file changed
+3
-2
+3
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user