|
Boost Users : |
From: Frank Birbacher (bloodymir.crap_at_[hidden])
Date: 2008-05-06 20:50:11
Abhishek Soni schrieb:
> //RtSpChar is defined as typedef shared_array<RtU8T> RtSpChar; in
[snip]
> r_repositoryData.mp_data = RtSpChar (new
> RtU8T(l_repData.length()+1));
These lines don't go together: "shared_array" must be used with
"operator new[]". There are no "[]" with "new" here. This means you must
use "shared_ptr".
> Kindly help me.. am stuck in it for past three days.... any help will be
> appreciated
I hope this will fix your error. It is good you posted all the info:
code and backtrace.
Regards,
Frank
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net