23 May
2008
23 May
'08
9:07 p.m.
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.