
11 Apr
2010
11 Apr
'10
10:24 p.m.
I enclose a Spirit parser with two BOOST_FOREACH loops, one of which works and the other coredumps. I also enclose a gdb backtrace.
Can you explain what's going on here?
If you add the return statement to your operator<<(), everything will be fine. For instance: std::ostream& operator<<(std::ostream& o, const test& b) { b.print(o); return o; // <-- here }; Regards Hartmut --------------- Meet me at BoostCon www.boostcon.com