boost lambda problems
Hi,
the following code crashs:
#include
Steven Watanabe schrieb:
AMDG
Olaf Peter wrote:
Thanks Steven ,
std::for_each( &blk->buffer, &blk->buffer + sizeof( blk->buffer ), sum += *_1 );
with this I get huge compiler errors (very long).
You don't need to dereference the iterator. Lambda dereferences it for you.
That's it, I was looking on the wrong place ... Thanks, Olaf
participants (2)
-
Olaf Peter
-
Steven Watanabe