int main()
{
void* Foo = new???
delete Foo;
}
How do you do something like the above? You can't put new void[size]. And I don't want to know how to do it with malloc() and free(). I already know that works. I'm curious and want to know how it's done with new and delete.
I googled this and saw something about operator new(size); and operator delete(size);
What is the difference between those and new / delete? Why does C++ not just allow new void* [size]?