From 5608cb97ac16c34b190823a205deb66af337c332 Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 11 Jun 2015 00:21:11 +0100 Subject: [PATCH] fix --- octa/vector.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/octa/vector.h b/octa/vector.h index 46a1951..1d463d7 100644 --- a/octa/vector.h +++ b/octa/vector.h @@ -108,8 +108,8 @@ class Vector { if (octa::IsPod()) { memcpy(p_buf.p_ptr, v.p_buf.p_ptr, p_len * sizeof(T)); } else { - T *cur = p_buf.p_ptr, *last = p_buf.p_ptr + p_len; - T *vbuf = v.p_buf.p_ptr; + Pointer cur = p_buf.p_ptr, last = p_buf.p_ptr + p_len; + Pointer vbuf = v.p_buf.p_ptr; while (cur != last) { octa::allocator_construct(p_buf.get_alloc(), cur++, *vbuf++); @@ -135,7 +135,7 @@ public: const A &al = A()): Vector(al) { p_buf.p_ptr = octa::allocator_allocate(p_buf.get_alloc(), n); p_len = p_cap = n; - T *cur = p_buf.p_ptr, *last = p_buf.p_ptr + n; + Pointer cur = p_buf.p_ptr, last = p_buf.p_ptr + n; while (cur != last) octa::allocator_construct(p_buf.get_alloc(), cur++, val); }