char *newCharz( uint size ) {
return (new char [size]).ptr;
}
char *p = newCharz(32);
:P
I like the explicity.
Chris Miller wrote:
>
> char* p = new char[32];
>
> Error: cannot implicitly convert expression (new char[](32)) of type
> char[] to char*
>
> Should this be a special case? Currently it needs (new char[32]).ptr