By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,905 Members | 1,783 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,905 IT Pros & Developers. It's quick & easy.

overloaded type cast functions

P: n/a
bob
I was just wondering if overloaded type cast functions
must always be member functions of some class.

Aug 12 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 2007-08-12 14:49, bo*@coolgroups.com 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
Aug 12 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.