"yuu" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) m...
[--(int)d where d is an enum type object]
> Chris Torek <(E-Mail Removed)> wrote in message
> > Modern C++ (which is quite different from the C++ I read about in
> > the original Stroustrup book) has quite a few different kinds of
> > casts, with subtly (or even blatantly) different meanings, but in
> > this particular case, the result of a "C-style cast" is a reference.
> Are you saying this --(int)d is correct in C++?
No, he never said that.
I believe the behaviour is undefined if d's type is not compatible with int,
but questions on C++ are best answered in C++ groups...