B
bittercold
Hi, guys,
I need to overload global "new" operator but I have to know the type id
"new" is begin invoked on.
For example if I overload it like this
void *operator new(size_t n)
{
...body...
}
I can only use "n" to get the size of object of whatever type is being
instantiated.
Is it possible to know the type?
thanks in advance
I need to overload global "new" operator but I have to know the type id
"new" is begin invoked on.
For example if I overload it like this
void *operator new(size_t n)
{
...body...
}
I can only use "n" to get the size of object of whatever type is being
instantiated.
Is it possible to know the type?
thanks in advance