overloaded type cast functions



 DEVELOP > c-Plus-Plus > overloaded type cast functions

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: DEVELOP > c-Plus-Plus
User: ""
Date: 12 Aug 2007 07:49:37 AM
Object: overloaded type cast functions
I was just wondering if overloaded type cast functions
must always be member functions of some class.
.

User: "=?ISO-8859-1?Q?Erik_Wikstr=F6m?="

Title: Re: overloaded type cast functions 12 Aug 2007 08:21:28 AM
On 2007-08-12 14:49,
wrote:

I was just wondering if overloaded type cast functions
must always be member functions of some class.

If you mean the *_cast they can not be overloaded, if you mean the
struct Foo
{
operator int();
};
thing, then yes, they have to be members.
--
Erik Wikström
.


  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER