enums in C++
Ulrich Drepper
drepper@redhat.com
Tue Apr 18 07:43:00 GMT 2000
Nathan Sidwell <nathan@codesourcery.com> writes:
> > return a + foo (A | B);
> this is not legal C++. there is no implicit conversion from int
> to enum. You need an explict cast. Hence the error.
But I was calling a C function.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Gcc-bugs
mailing list