Nat Goodspeed | 23 May 23:07

Re: design question with using call_traits and functors

Hansi wrote:

> This version I have tested also, the only Problem which could happen I 
> think is the reference of reference problem. Isn't it?

Um - I don't understand the bad case you're imagining. I added this:

void func(int& param)
{
     Set("51", param);
}

and these two lines:

     func(target);
     std::cout << "Set(ref) produced " << target << '\n';

and got what I expected. So I'm not yet following your train of thought.

Gmane