[CLN-list] More questions about compiler warnings

Richard B. Kreckel kreckel at in.terlu.de
Mon Mar 12 21:01:27 CET 2018


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.


More information about the CLN-list mailing list