Jérôme M. Berger <[email protected]> wrote:

Emil Madsen wrote:
can the enum be a float? if calcprimes returned a float? - and if so, will
the enum be a float or an int? (will it be casted, or will it work as an
auto type?)

        Yes, basically "enum" is a synonym for "compile-time const auto"
(although the "auto" part can be replaced by an explicit type).

Or, you know, just "compile-time const", as the lack of a specified type,
and const being a storage class, allows for type inference. Auto is not
necessary.


--
Simen

Reply via email to