
29 Jul
2010
29 Jul
'10
1:48 p.m.
On 7/29/10 3:34 PM, Thomas Heller wrote:
I'm not sure why phoenix2 implemented it using the extension mechanism instead of a plain phoenix function. In phoenix3, I suggest making it a phoenix function. Oh, and I also suggest dealing with const/non-consts and returning references as well.
I implemented phoenix::at_c the same way as it was done with phoenix2. Have a look here: https://svn.boost.org/trac/boost/browser/sandbox/SOC/2010/phoenix3/boost/pho...
I think the reason why it was (and is done) this way, is to supply N as a template parameter, not a parameter to the lazy function.
Makes perfect sense. Thanks for reminding me. Regards, -- Joel de Guzman http://www.boostpro.com http://spirit.sf.net