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... 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@ginac.de https://www.cebix.net/mailman/listinfo/cln-list