11 Aug
2015
11 Aug
'15
3:36 p.m.
On 11 August 2015 at 11:46, Mario Lang
Hi.
The example is a bit silly, since foreach discards the return value of apply_visitor anyway. So my solution was to change the visitor to define result_type as void. This works. However, I am wondering why delayed_visitor does no longer work in this situation? Is it because I am trying to return a reference?
Could you also tell us which compiler and OS you're using and what the compiler error is? -- Maarten