Quote:
Now when I repeatedly said that I don't wish to specify a datatype for the storage explicitly, why am I going to make things more complicated and bundle a whole load them in a union instead?
The only reason a union was suggested was because you specifically said earlier, "I want to be able to store it anywhere on the stack instead of using malloc or dynamic allocation on the heap (don't ask)." It is easy to write a generic swap with memcpy(); it's harder to do without malloc() and also still accommodate mostly arbitrary data types. That is why you are getting inconvenient suggestions. I'm sorry to tell you that it's much easier to just use malloc() in your implementation. Anything else is going to be even more work than that.