Bit By Void
Recently I got bit by void* again because of another C++ quirk I didn’t think through. I had a class which wrapped a void* which could be one of many different structs. The structs were POD and didn’t have any shared functionality hence I didn’t bother creating an inheritance hierarchy. Unfortunately I defined the structs like so