Index: src/ch/charvect.h =================================================================== diff -u -N -r3493e9fc470285b0a0b417d50be281467a071eb7 -rcdf6a22ddf857f56ce2e27e26d8cd6f0b8034b2e --- src/ch/charvect.h (.../charvect.h) (revision 3493e9fc470285b0a0b417d50be281467a071eb7) +++ src/ch/charvect.h (.../charvect.h) (revision cdf6a22ddf857f56ce2e27e26d8cd6f0b8034b2e) @@ -75,6 +75,19 @@ else ((vector*)this)->insert(_Where, _Count, _Val); }; + void insert(iterator _Where, size_type _Count, const PCTSTR& _Val) + { + size_type _Size=_tcslen(_Val)+1; + PTSTR *ppsz=new PTSTR[_Count]; + for(size_type i=0;i<_Count;i++) + { + ppsz[i]=new TCHAR[_Size]; + _tcscpy(ppsz[i], _Val); + } + + ((vector*)this)->insert(_Where, ppsz, ppsz+_Count); + delete [] ppsz; + }; template void insert(iterator _Where, _It _First, _It _Last, bool bCopy) { if (bCopy) @@ -100,6 +113,7 @@ void pop_back(bool bDelete) { if (bDelete) delete [] (*(end()-1)); ((vector*)this)->pop_back(); }; void push_back(const PTSTR& _Val, bool bCopy) { insert(end(), 1, _Val, bCopy); }; + void push_back(const PCTSTR& _Val) { insert(end(), 1, _Val); }; }; #endif \ No newline at end of file