Hi,
On 8/21/11 4:43 PM, Adrian Sevcenco wrote:
> On 08/21/11 16:58, Axel Naumann wrote:
Deprecated? I don't understand that. Maybe you're referring to the array-to-pointer decay? Yes, that's the case when calling Sort() passing an array in.
Sort() only sees the starting address of the arrays (const Element*, Index*), it doesn't know their size which needs to be provided through the argument "n".
Cheers, Axel.
>> A recommendation: you could have used valgrind to find this problem in
>> your usage of Sort().
> well, this is how i found out my problem in my code (i did some copy > paste of an sort and i forgot to adjust the number of elements..) > > Thanks, > Adrian >
This archive was generated by hypermail 2.2.0 : Mon Aug 22 2011 - 05:50:01 CEST