D
Default User
Random832 said:though, >> that it doesn't actually forbid NULL expanding to
((void*)0) - a >> compiler could special-case this to not be an error
when assigned to >> other pointers.
Right. Like I said, it misses the point of having void * at all.
No, it doesn't. It provides a way to pass any pointer INTO a function.
So at best you could say it misses half the point of a void*.
In actual practice, void* isn't used much in C++. Generally you use
function overloading or pointers to a family of types, relying on
runtime polymorphism.
Brian