[iter] Fix test again

This commit is contained in:
Behdad Esfahbod 2018-12-21 11:20:27 -05:00
parent e952075248
commit bdb6da7226
1 changed files with 3 additions and 3 deletions

View File

@ -60,14 +60,14 @@ struct some_array_t
template <typename I, typename V> inline void
hb_fill (hb_iter_t<I> i, const V &v)
hb_fill (hb_iter_t<I> &i, const V &v)
{
for (; i; i++)
hb_assign (*i, v);
}
template <typename S, typename D> inline bool
hb_copy (hb_iter_t<D> id, hb_iter_t<S> is)
hb_copy (hb_iter_t<D> &id, hb_iter_t<S> &is)
{
for (; id && is; ++id, ++is)
*id = *is;
@ -91,7 +91,7 @@ main (int argc, char **argv)
hb_fill (t, 42);
hb_copy (t, s);
hb_copy (t, a.iter ());
// hb_copy (t, a.iter ());
return 0;
}