Boost Users :
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-06-26 14:38:17
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.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net