Hi,
is the use of void* in C++ dangerous?
If so what are the reasons?
The reason I'm asking is that I want to store some
pointers to objects of class A in a list which itself is
located in class B. However, I want to avoid dependencies
between both cl***** so my idea was to have a
std::list< void * >
in order to avoid including headers of class A in class B.
Or do you see a more elegant solution for that?
Regards,
Tim