Re: what is meant by ?



"IceColdFire" <IceColdFire@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6123E31A-ED23-4EA4-A0FD-D5507A2CF429@xxxxxxxxxxxxxxxx
> Hi,
>
> what is meant by
> operator int() { return i; }
>
> in a class?
>
> a.a.cpp

This is an integer casting operator used for statements like this...

int j= (int)some_class_that_implements_the_int_cast_operator;

--
============
Frank Hickman
Microsoft MVP
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.


.



Relevant Pages

  • Re: what is meant by ?
    ... >> This is an integer casting operator used for statements like this... ... Microsoft MVP ... NobleSoft, Inc. ... Prev by Date: ...
    (microsoft.public.vc.language)
  • Re: what is meant by ?
    ... >> operator int() ... > This is an integer casting operator used for statements like this... ... > NobleSoft, Inc. ... Prev by Date: ...
    (microsoft.public.vc.language)

Loading