阅读背景:

将无符号字符*转换为const无符号字符*后,删除[]

来源:互联网 

Roughly speaking, I have a class that holds an array of const unsigned char. Objects of this class are created by a special factory function that also takes care of constructing the array (on the heap). When an object is created in the factory function, it will be given the pointer to the array. The array won't be copied, the object will just use the given pointer. On destruction, it will deallocate the chunk of memory that the array occupied.Roughly speaking, I have a class that holds an




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: