Re: Can't get custom allocation function to work
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Can't get custom allocation function to work
- From: Ralph Hempel <rhempel@...>
- Date: 2009年3月24日 11:03:28 -0400
Martin C. Martin wrote:
vector overloads [] so that (*mem)[0] equals storage[0], which is
exactly what you want the address of.
And that's why I should keep my fingers off the keyboard when
the conversation turns around C++.
Thanks for clearing that up, and the real problem is probably
the realloc operation that copies data from the old to the resized
data area.
Cheers, Ralph