[CLN-list] More questions about compiler warnings
Jan Rheinländer
jrheinlaender at gmx.de
Tue Mar 13 20:14:19 CET 2018
This page seems to indicate that it is a bug in MSVC (I use version 19
from Visual Studio 2015)
https://stackoverflow.com/questions/2732085/is-there-a-way-to-make-enum-type-to-be-unsigned
The MS documentation is not too clear about the underlying type of
enumerations
https://msdn.microsoft.com/en-us/library/2dzy4k6e.aspx
But in the end, it's just a compiler warning. "make check" compiles
successfully either way.
Am 12.03.2018 um 21:01 schrieb Richard B. Kreckel:
> On 12.03.2018 20:20, Jan Rheinländer wrote:
>> thank you for explaining about the compiler warning. Here are two more:
>>
>> File include/cln/floatformat.h:
>>
>> It seems that with MSVC enums always have int as the underlying type.
> Are you sure and are you using an up-to-date compiler version?
>
> ISO/IEC 14882:2014 says in 7.2: "For an enumeration whose underlying
> type is not fixed, the underlying type is an integral type that can
> represent all the enumerator values defined in the enumeration."
>
> -richy.
> _______________________________________________
> CLN-list mailing list
> CLN-list at ginac.de
> https://www.cebix.net/mailman/listinfo/cln-list
More information about the CLN-list
mailing list