
6 Jan
2011
6 Jan
'11
5:03 p.m.
2011/1/7, Hossein Haeri
MyClass mc(_1 >> &f >> &g >> &h); mc.set_input(-61.1); cout << mc.value();//returns h(g(f(-61.1)))
Now, are you telling me that I can store that "_1 >> &f >> &g >> &h" bit in a data member of mc using make_expr? If so, what will the type of that data member be? Or, are you suggesting a totally different design?
Hi, Hossein. IIUC, you may need some way to abstract the ET away, maybe by using boost::function, like what Spirit does for its rule component. Is this what you want?