H
Hansen
Hi group,
I'm writting a test at the moment where I want to inspect the content of a
vector that I uses as a buffer. The problem is that the function which
populates the vector also sends the vector and the send method performs a
resize(0). So when I try to inspect the vector afterwards, it appears empty.
I there a way to get a pointer to the beginning of the vector, since the
data is still there. Or is it possible to perform a resize(n) that doens't
zero out the content?
I now that the _Myfirst member of vector points to the beginning of the
vector, but thats a protected member and hence inaccessible.
Any ideas?
(I've tried using the #define protected public hack, but since the code
being tested is located in another compilation unit, I get a dllimport
error, since some of the methods being used are defined as protected)
I'm writting a test at the moment where I want to inspect the content of a
vector that I uses as a buffer. The problem is that the function which
populates the vector also sends the vector and the send method performs a
resize(0). So when I try to inspect the vector afterwards, it appears empty.
I there a way to get a pointer to the beginning of the vector, since the
data is still there. Or is it possible to perform a resize(n) that doens't
zero out the content?
I now that the _Myfirst member of vector points to the beginning of the
vector, but thats a protected member and hence inaccessible.
Any ideas?
(I've tried using the #define protected public hack, but since the code
being tested is located in another compilation unit, I get a dllimport
error, since some of the methods being used are defined as protected)