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.


Shunsuke Sogame

Boost list run by bdawes at, gregod at, cpdaniel at, john at