--- libptytty/src/estl.h 2012/05/19 02:13:59 1.14 +++ libptytty/src/estl.h 2012/05/19 02:15:31 1.15 @@ -102,13 +102,13 @@ // MUST copy forwards template - static void copy (iterator dst, I src, size_type n, void (*op)(iterator, I) = cop_new) + static void copy (iterator dst, I src, size_type n, void (*op)(iterator, I)) { while (n--) op (dst++, src++); } - static void copy (iterator dst, iterator src, size_type n, void (*op)(iterator, iterator) = cop_new) + static void copy (iterator dst, iterator src, size_type n, void (*op)(iterator, iterator)) { if (is_simple_enough ()) memcpy (dst, src, sizeof (T) * n); @@ -185,7 +185,7 @@ sz = good_size (sz); T *nbuf = alloc (sz); - copy (nbuf, begin (), sze); + copy (nbuf, begin (), sze, cop_new); dealloc (); buf = nbuf; @@ -224,7 +224,7 @@ { sze = res = last - first; buf = alloc (sze); - copy (buf, first, sze); + copy (buf, first, sze, cop_new); } simplevec (const simplevec &v) @@ -232,7 +232,7 @@ { sze = res = v.size (); buf = alloc (sze); - copy (buf, v.begin (), sze); + copy (buf, v.begin (), sze, cop_new); } ~simplevec ()