Casting to void* and Back to Original_Data_Type*
问题 I have seen and used this many times is C++, specially in various thread implementations. What I wonder is if there are any pitfalls/ issues of doing this? Is there any way that we could run in to an error or undefined condition when we are casting to void* and back again? How should we resolve such issues if there are any? Thank you. 回答1: What I wonder is if there are any pitfalls/ issues of doing this? You need to be absolutely sure while casting the the void* back to the particular type,