19 Mar
2009
19 Mar
'09
1:20 a.m.
On Wed, Mar 18, 2009 at 5:47 PM, Steven Watanabe
AMDG
Sandeep Gupta wrote:
On Wed, Mar 18, 2009 at 3:18 PM, Steven Watanabe
wrote: phoenix::function doesn't need bind:
phoenix::push_back(phoenix::ref(myvec), arg1)(5);
Thanks Steven,. Unfortunately, this also fails. Below is the error.
Whoops. The function object generated by phoenix doesn't take rvalues.
int x = 5; phoenix::push_back(phoenix::ref(myvec), arg1)(x);
Works perfectly now. As always, I really appreciate all your help and taking trouble to look over even the trivial mistakes. thanks sandeep