A
Aguilar, James
I thought that functions always had to have different parameters if they had
the same names. However, this section
(http://www.parashift.com/c++-faq-lite/operator-overloading.html#faq-13.8)
of the FAQ creates two operator () methods that take the same parameters.
One is const, the other is not, and the return type is different. However,
I was under the impression that methods with identical names and parameter
signatures would be an error. How does this work?
the same names. However, this section
(http://www.parashift.com/c++-faq-lite/operator-overloading.html#faq-13.8)
of the FAQ creates two operator () methods that take the same parameters.
One is const, the other is not, and the return type is different. However,
I was under the impression that methods with identical names and parameter
signatures would be an error. How does this work?