MPL: flatten implementation not working
Hi all,
I came up with the following implementation of a "flatten" operation that
turns a sequence of sequences into a flat list:
8< -------------------------------------------------------------------
#include <iostream>
#include
On 09/03/2007 07:46 PM, Andreas Klöckner wrote:
Hi all,
I came up with the following implementation of a "flatten" operation that turns a sequence of sequences into a flat list:
[...]
It compiles (using gcc 4.2.1), but prints 0 instead of the expected 7. What am I doing wrong?
I'm not sure of what you might be doing wrong, but if you take away the
lambda expression, and use another level of indirection things work for
me:
----- cut ------
#include <iostream>
#include
participants (2)
-
Andreas Klöckner
-
Tiago de Paula Peixoto