Boost logo

Boost :

Subject: Re: [boost] [GSoC][Phoenix3] Regarding mutability of arguments passed to phoenix expressions
From: Alexey Tkachenko (alek.tkachenko_at_[hidden])
Date: 2010-04-29 03:38:55


> Example:
>
> int i( 1 );
> ( ++phoenix::arg_names::arg1 )( i );
>
> The result of ++phoenix::arg_names::arg1 will be 2, i will have the value 2
> after the expression is evaluated.

Interesting,
what will happen in this case:
( ++phoenix::arg_names::arg1 )( (const int&)10 );

Regards,
Alexey Tkachenko.


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