read/write access to the buffer of a sequence

André Borrmann <[email protected]>
Newsgroups gmane.comp.corba.orbacus
Message-ID <[email protected]>
Hi,

I want to have read/write access to the buffer of a sequence. Here is the
code snippet:

void clientSimuEventHandler::receiveData(const
::corbaSimuNotify::floatsequence& pressure)
{
  float* f = v_x.get_buffer(1);
  //...
}

The 1 demarks that I get the responsibility for memory management, as
described on p.193 in Henning/Vinoski. Unfortunatly, that does not work. It
tells me something like 'There is no valid conversion for the this-Pointer'.
I guess the problem lies in the 'const' in the parameter list of that
function.

Does anyone have an idea on how to bypass this problem? I don't want to copy
the whole buffer.

Thank you in advance!

Sincerly,
André Borrmann


_______________________________________________
OB-Users Mailing List - [email protected]
http://mail.ooc.nf.ca/mailman/listinfo/ob-users
Visit our support FAQ before you send a message.
http://www.orbacus.com/faq/support.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.