Comment Comment by TuxSH > It shouldn't require casting from and to specific pointer typesYou don't need to explicitly cast T* to void* (guaranteed to be safe), you only need to cast when converting out of void*.The rules are basically the same as casting between pointer-to-derived-class and pointer-to-base-class and they make sense. parent TuxSH 5 months ago
You don't need to explicitly cast T* to void* (guaranteed to be safe), you only need to cast when converting out of void*.
The rules are basically the same as casting between pointer-to-derived-class and pointer-to-base-class and they make sense.