5 Sep
2008
5 Sep
'08
4:44 p.m.
AMDG Peter Barker wrote:
Hello,
In my test program below, I have a container of columns and want to output the column headers into a string separated by a tab. The lambda expression is looking fairly complicated so I wonder if it could be made simpler or if there's any other algorithm I should've used to put a separator between the elements?
How about, std::size_t i = 0; //... ( if_(var(i)++) [ var(outputText) += constant(fieldSeparator) ], var(outputText) += bind(&Column::getColumnText,_1) ) In Christ, Steven Watanabe