On 7/20/06, Dave Dribin
Hmmm... I'm not sure that would help in my case. The endianness need not be different for unions to be useful.
I was just guessing. Now that you've described your case, I see what your reason is. I'm not a fan of that macro hackery, however...
Sure, I'll go over the details in a second. But what's the use case/ rationale for *not* wanting to support unions?
The problem is that the classes can't properly act "like ints". The
way they are now they can't be used in a union, as you've mentions.
But take out the constructors and then the following rather logical
program doesn't work any more:
#include