演算子 new で割り当てられているオブジェクトの型を取得する方法はありますか?
つまり、次のとおりです。
void* BaseClass::operator new(size_t size)
{
void* result = ::operator new(size);
//Get type of object that's being allocated
return result;
}
演算子 new で割り当てられているオブジェクトの型を取得する方法はありますか?
つまり、次のとおりです。
void* BaseClass::operator new(size_t size)
{
void* result = ::operator new(size);
//Get type of object that's being allocated
return result;
}