Boost logo

Boost Users :

Subject: Re: [Boost-users] [phoenix] lazy function to reference or const reference
From: Thomas Heller (thom.heller_at_[hidden])
Date: 2011-04-04 05:53:16


On Monday, April 04, 2011 10:29:57 AM alfC wrote:
> Hi,
>
> Is it possible to use references as the type of the function wrapped
> by lazy function. The reason I need this is because I need to
> instatiate a lazy function inside a class and to a class while the
> class does not have yet a complete definition. The application may
> sound exotic but I see no intrinsic limitation why the following
> doesn't work. If this is not possible because an intrinsic limitation
> of phoenix, is there a workaround?

I messed up in the type calculation ;)
Thanks for reporting, the issue is now fixed on trunk.

> -- Thanks -- Alfredo
>
> ... is_odd_impl is defined as in
>
http://svn.boost.org/svn/boost/sandbox/SOC/2010/phoenix3/libs/phoenix/doc/html/phoenix/starter_kit/lazy_functions.html

Please update your copy of Phoenix. Phoenix V3 is now in the boost trunk, the
sandbox/SOC version will not get fixed anymore.
https://svn.boost.org/svn/boost/trunk/libs/phoenix/doc/html/phoenix/starter_kit/lazy_functions.html


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net