Boost logo

Boost Users :

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


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