
7 Apr
2008
7 Apr
'08
6:38 a.m.
Eric Niebler wrote:
I don't think so. If I have an rvalue, I compute the return type and invoke the function as follows:
result_of<identity(int)>::type i = identity()(1);
In C++0x, this is translated into int const & i = identity()(1); ? If so, this is undefined behavior. Regards, -- Shunsuke Sogame