I'm reading stroustrup C++ FAQ site. Where I saw following line.
- avoid
void*
(keep them inside low-level functions and data structures if you really need them and present type safe interfaces, usually templates, to your users)
Why is void*
considered unsafe in C++?
Aucun commentaire:
Enregistrer un commentaire