26 Jun
2008
26 Jun
'08
6:38 p.m.
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. In Christ, Steven Watanabe