C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can we overload *_cast<> operators?

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Suman
Guest





PostPosted: Wed Jun 14, 2006 9:10 am    Post subject: Can we overload *_cast<> operators? Reply with quote



Having had a look at the C++ FAQ, comp.lang.c++ & comp.std.c++
archives and Stroustrup's FAQs (particularly the following:
<url:http://www.research.att.com/~bs/bs_faq2.html#overload-dot/>)
I am left to wondering why Stroustrup doesn't mention the
*_cast<> operators or operator .* in that particular FAQ.
Archived discussions have convinced me that .* _cannot_ be overloaded.
I have gathered a notion (perhaps incorrectly) that the *_cast<>
operators cannot be overloaded as well. Hence this post.

Awaiting enlightenment.

--
Suman
Back to top
Rayer
Guest





PostPosted: Wed Jun 14, 2006 9:10 am    Post subject: Re: Can we overload *_cast<> operators? Reply with quote



Suman wrote:
Quote:
Having had a look at the C++ FAQ, comp.lang.c++ & comp.std.c++
archives and Stroustrup's FAQs (particularly the following:
url:http://www.research.att.com/~bs/bs_faq2.html#overload-dot/>)
I am left to wondering why Stroustrup doesn't mention the
*_cast<> operators or operator .* in that particular FAQ.
Archived discussions have convinced me that .* _cannot_ be overloaded.
I have gathered a notion (perhaps incorrectly) that the *_cast
operators cannot be overloaded as well. Hence this post.

Awaiting enlightenment.

--
Suman

Do you mean such like static_cast<typedef>?

I cant sure, but it seems is not a operator...

and the same, (typedef), () is not operator too...
Back to top
Suman
Guest





PostPosted: Wed Jun 14, 2006 9:10 am    Post subject: Re: Can we overload *_cast<> operators? Reply with quote



Rayer wrote:

Quote:
Suman wrote:
Having had a look at the C++ FAQ, comp.lang.c++ & comp.std.c++
archives and Stroustrup's FAQs (particularly the following:
url:http://www.research.att.com/~bs/bs_faq2.html#overload-dot/>)
I am left to wondering why Stroustrup doesn't mention the
*_cast<> operators or operator .* in that particular FAQ.
Archived discussions have convinced me that .* _cannot_ be overloaded.
I have gathered a notion (perhaps incorrectly) that the *_cast
operators cannot be overloaded as well. Hence this post.

Awaiting enlightenment.

--
Suman

Do you mean such like static_cast<typedef>?
I cant sure, but it seems is not a operator...

<url: http://cs.stmarys.ca/~porter/csc/ref/cpp_operators.html/>
should help you.
Back to top
Rayer
Guest





PostPosted: Wed Jun 14, 2006 9:10 am    Post subject: Re: Can we overload *_cast<> operators? Reply with quote

Suman wrote:
Quote:
Having had a look at the C++ FAQ, comp.lang.c++ & comp.std.c++
archives and Stroustrup's FAQs (particularly the following:
url:http://www.research.att.com/~bs/bs_faq2.html#overload-dot/>)
I am left to wondering why Stroustrup doesn't mention the
*_cast<> operators or operator .* in that particular FAQ.
Archived discussions have convinced me that .* _cannot_ be overloaded.
I have gathered a notion (perhaps incorrectly) that the *_cast
operators cannot be overloaded as well. Hence this post.

Awaiting enlightenment.

--
Suman

I cant sure, but *_cast series seems KEYWORDS not OPERATOR?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.