[vbox-dev] Fix for nocrt vector implementation

2022-12-15 Thread Martin Fleisz via vbox-dev
The patch below fixes an issue with the nocrt vector's != operator which is commonly used in iteration loops. I'm submitting this patch under the MIT license. Best regards, Martin Fleisz Thincast Technologies GmbH diff --git include/iprt/nocrt/vector include/iprt/nocrt/vector index 607a75097d3

Re: [vbox-dev] Fix for nocrt vector implementation

2022-12-16 Thread Martin Fleisz via vbox-dev
Hi Andreas, thanks! I have found another bug and have attached a fix for it. The problem is that if you call end() on an empty vector the current implementation tries to de-reference a NULL pointer and crashes. I'm submitting this patch under the MIT license. Best regards and have a nice weekend

Re: [vbox-dev] Fix for nocrt vector implementation

2022-12-20 Thread Martin Fleisz via vbox-dev
hile it is not implemented in the vector template. Sorry for the noise! Best regards, Martin On 16.12.2022 09:42, Martin Fleisz via vbox-dev wrote: > Hi Andreas, > > thanks! I have found another bug and have attached a fix for it. > The problem is that if you call end() on an empty ve

[vbox-dev] Fix vector::data() methods and add vector::clear()

2022-12-28 Thread Martin Fleisz via vbox-dev
The patch below fixes a compilation issue when using vector::data() and adds a clear() method to the template. I'm submitting this patch under the MIT license. Best regards and a happy new year! Martin Fleisz Thincast Technologies GmbH Bahnhofplatz 7/3, 2340 Moedling, Austria http://www.thincast