Grumpy,
Thanks for your answer.
What do you mean by ?
By the way, I realize that I also made a mistake in the definition of my example class (the const is on the wrong operator) ... I...
Type: Posts; User: edlep
Grumpy,
Thanks for your answer.
What do you mean by ?
By the way, I realize that I also made a mistake in the definition of my example class (the const is on the wrong operator) ... I...
[EDIT]
You are absolutely right, sorry for that error.
The idea was obviously the following:
void theFunc(const double &d)
{
}
and the difference between
Hello,
Given a class with [] operators for both lvalue and rvalue:
class A
{
public:
double items[10];
double operator [] (unsigned int i)