Alf P. Steinbach wrote:
>
Or for example, if they're unsigned char and sizeof(unsigned int)>=2,
then let z = (unsigned(x)<<CHAR_BIT) | unsigned(y).
Hi Alf, thanks. In my case they are two unsigned int (I'm evaluating if
two size_t are better though). I was indeed considering to gather them
into a struct and overloading the < operator (as you also suggest), but
I was interested in a more low-level approach, such as the one you
describe over here. Could you expand a bit on this? Supposing I have two
uint32_t would it still possible to do something like this?
Regards
J.