From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-06-26 14:19:59


AMDG

Olaf Peter wrote:
> std::for_each( &blk->buffer,
> &blk->buffer + sizeof( blk->buffer ),
> sum += *_1 );
>

try &blk->buffer[0] i.e. the address of the first element, not the
address of the array.

In Christ,
Steven Watanabe