jlv@ebt-inc.uucp (Jeffrey L. Vogel) (12/12/90)
Does g++ support overloading of the new operator??
I have tried the following:
void * operator new(long size, my_data_type buf)
{
...
return buf;
}
{
int *a;
my_data_type b;
...
a = new (b) int;
}
The result is a parse error before "new".