M
mosfet
Hi,
In one my class I would like to give access to one of my buffer so I
have declared something like this :
vector<char>& RespData = pWebResp->get_RawBuffer();
The problem is caller can also write this :
vector<char> RespData = pWebResp->get_RawBuffer();
and in this case will it copy my buffer into RespData ?
If yes how can I prevent this behavior ?
In one my class I would like to give access to one of my buffer so I
have declared something like this :
vector<char>& RespData = pWebResp->get_RawBuffer();
The problem is caller can also write this :
vector<char> RespData = pWebResp->get_RawBuffer();
and in this case will it copy my buffer into RespData ?
If yes how can I prevent this behavior ?