On 01/08/2014 06:23 PM, Ángel González wrote:
I think you want to use an union, not a flexible array (yes, you will overallocate for some types, but should be saner).
The problem with using a union is that it doesn't allow for storage of *any* type -- a structure for example. As I said in another post, I've realized that this simply isn't going to work. I'll just use a void pointer. Thanks all!