Boost logo

Boost :

From: shunsuke (pstade.mb_at_[hidden])
Date: 2008-04-07 02:38:11


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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk