Re: [fpc-pascal] FCL-STL's TVector and removing of elements

2012-01-28 Thread Sven Barth
On 28.01.2012 21:51, Kornel Kisielewicz wrote: On Sat, Jan 28, 2012 at 9:27 PM, Sven Barth wrote: On 28.01.2012 20:10, Kornel Kisielewicz wrote: Woah, where is that unit from? It's part of FPC's packages in 2.7.1 (package fcl-stl). They also compile in 2.6.0 if you download their source.

Re: [fpc-pascal] FCL-STL's TVector and removing of elements

2012-01-28 Thread Kornel Kisielewicz
On Sat, Jan 28, 2012 at 9:27 PM, Sven Barth wrote: > On 28.01.2012 20:10, Kornel Kisielewicz wrote: >> Woah, where is that unit from? > > > It's part of FPC's packages in 2.7.1 (package fcl-stl). They also compile in > 2.6.0 if you download their source. I just wondered because I once did the sam

Re: [fpc-pascal] FCL-STL's TVector and removing of elements

2012-01-28 Thread Sven Barth
On 28.01.2012 20:10, Kornel Kisielewicz wrote: On Sat, Jan 28, 2012 at 7:30 PM, Sven Barth wrote: Hello together! Can it be that the TVector type of FCL-STL has some problems when deleting elements? At least the following code generates an exception when running it: program fclstltest1; {$

Re: [fpc-pascal] FCL-STL's TVector and removing of elements

2012-01-28 Thread Kornel Kisielewicz
On Sat, Jan 28, 2012 at 7:30 PM, Sven Barth wrote: > Hello together! > > Can it be that the TVector type of FCL-STL has some problems when > deleting elements? > > At least the following code generates an exception when running it: > > program fclstltest1; > > {$mode objfpc} > > uses >  gvector;

[fpc-pascal] FCL-STL's TVector and removing of elements

2012-01-28 Thread Sven Barth
Hello together! Can it be that the TVector type of FCL-STL has some problems when deleting elements? At least the following code generates an exception when running it: program fclstltest1; {$mode objfpc} uses gvector; type TMyVector = specialize TVector; var v: TMyVector; begin v