Re: what is meant by ?
- From: "Frank Hickman [MVP]" <fhickman_NOSP@xxxxxxxxxxxxxxx>
- Date: Thu, 14 Apr 2005 02:59:35 -0400
"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.
.
- Follow-Ups:
- Re: what is meant by ?
- From: Peter Koch Larsen
- Re: what is meant by ?
- References:
- what is meant by ?
- From: IceColdFire
- what is meant by ?
- Prev by Date: Smart pointer class definition missing!
- Next by Date: Re: what is meant by ?
- Previous by thread: what is meant by ?
- Next by thread: Re: what is meant by ?
- Index(es):
Relevant Pages
|
Loading