Search:

Type: Posts; User: edlep

Search: Search took 0.00 seconds.

  1. Grumpy, Thanks for your answer. What do you...

    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...
  2. [EDIT] You are absolutely right, sorry for that...

    [EDIT]
    You are absolutely right, sorry for that error.
    The idea was obviously the following:


    void theFunc(const double &d)
    {
    }

    and the difference between
  3. Why a function with const type reference argument doesn't use it as a rvalue ?

    Hello,

    Given a class with [] operators for both lvalue and rvalue:


    class A
    {
    public:
    double items[10];
    double operator [] (unsigned int i)
Results 1 to 3 of 3