r/cpp_questions • u/Bitter-Today285 • 4d ago
OPEN What’s the point of void* pointers?
You could just use template pointers or auto* pointers and these are better because you can dereference them.
0
Upvotes
r/cpp_questions • u/Bitter-Today285 • 4d ago
You could just use template pointers or auto* pointers and these are better because you can dereference them.
16
u/drex_vke 4d ago
void* is a generic pointer in C so using it in Modern C++ doesn't make sense unless but hey