cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Operator Overloading
Operator Overloading
Dec 21, 2011 at 6:59pm UTC
Anurag7069
(14)
Can any1 here explain that why operators like
1. Dot operator(.)
2. Scope resolution operator(::)
3. Conditional operator(?:)
4. Pointer to member variable(->)
cant be overloaded for user defined datatypes????
Plz help....
IT'S URGENT!!!!
Last edited on
Dec 21, 2011 at 7:03pm UTC
Dec 21, 2011 at 7:18pm UTC
Moschops
(7244)
http://www2.research.att.com/~bs/bs_faq2.html#overload-dot
Dec 21, 2011 at 7:20pm UTC
ne555
(10692)
The arrow operator
->
can
be overloaded. (¿didn't you use
iterators
?)
In general the result should be the same as
(*obj).method()
For the others see
http://www2.research.att.com/~bs/bs_faq2.html
Topic archived. No new replies allowed.