From 6513325e7bd1f55d188fd0b6f65893f684f5dfab Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 12:54:20 +0000 Subject: Utilisateur : Fcolin Date : 27/06/01 Heure : 14:24 Archivé dans $/Ivy (vss 5) --- Bus/Ivy/DataTypes.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Bus/Ivy/DataTypes.h b/Bus/Ivy/DataTypes.h index 99b6e05..acc4aa0 100644 --- a/Bus/Ivy/DataTypes.h +++ b/Bus/Ivy/DataTypes.h @@ -260,6 +260,9 @@ public: void reserve( size_t index ) { if ( index >= len ) + resize( index ); + } + void resize( size_t index ) { size_t i; T* newdata = new T[index]; @@ -271,7 +274,6 @@ public: data = newdata; len = index; } - } // Accesses indexed component of vector T & operator [](size_t index ) { -- cgit v1.1