Avoiding void* in C++
<p>I have an application that requires the packing of heterogeneous data in to a single structure.  For example, a single structure might contain three floats, two integers and a string.  I don't know which fields I'll have until runtime, and the key requirement is that the process be extremely fast.  I was planning to use an array of void*, which I can cast to the appropriate type when the message reaches its destination, but is there a better way of doing this?  Perhaps using Boost?</p>
