Hi All,
I tried to compile the following line:
pair<long, ulong> cr3(make_pair(-2147483648L, 2147483647));
but get this error:
unary minus applied to unsigned type, result still unsigned.
But in my c++ book is says that the postfix L forces the integer to be
signed.
Could anyone please explain this behaviour, and if possible point me to some
documentation that explains how intergral types are handled in depth?
Andy
I tried to compile the following line:
pair<long, ulong> cr3(make_pair(-2147483648L, 2147483647));
but get this error:
unary minus applied to unsigned type, result still unsigned.
But in my c++ book is says that the postfix L forces the integer to be
signed.
Could anyone please explain this behaviour, and if possible point me to some
documentation that explains how intergral types are handled in depth?
Andy
Comment