T
Tomás Ó hÉilidhe
I'm writing some cross-platform code and I invite the developer to
pick their own integer types in places. However, the integer type must be
unsigned. So far, I make sure this is so with:
typedef int SegIMustBeUnsigned[(SegI)-1 > 0 ? 3 : -3];
Yes, this does the trick, but I'm just wondering if anyone here has a
better way of doing it.
pick their own integer types in places. However, the integer type must be
unsigned. So far, I make sure this is so with:
typedef int SegIMustBeUnsigned[(SegI)-1 > 0 ? 3 : -3];
Yes, this does the trick, but I'm just wondering if anyone here has a
better way of doing it.