| View previous topic :: View next topic |
| Author |
Message |
Suman Guest
|
Posted: Wed Jun 14, 2006 9:10 am Post subject: Can we overload *_cast<> operators? |
|
|
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
|
Posted: Wed Jun 14, 2006 9:10 am Post subject: Re: Can we overload *_cast<> operators? |
|
|
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
|
Posted: Wed Jun 14, 2006 9:10 am Post subject: Re: Can we overload *_cast<> operators? |
|
|
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
|
Posted: Wed Jun 14, 2006 9:10 am Post subject: Re: Can we overload *_cast<> operators? |
|
|
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 |
|
 |
|