$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-02-22 14:49:46
Antonio Piccolboni wrote:
[...]
> int main() {
> std::vector<int> d;
> std::vector<std::vector<int> > s;
> loop_func(s.begin(), s.end (), d.begin(),
> BinFunc()); //flies with gcc
> loop_func(s.begin(), s.end(), d.begin(),
> bind<int>(std::accumulate, _1, _2, 0.0)); //does not
bind( std::accumulate< std::vector<int>::iterator, int >, _1, _2, 0 )
> }
might work.