Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-03-19 06:37:08


#include "boost/lambda/lambda.hpp"
#include <vector>
#include <algorithm>
#include <iostream>

int main()
{
   using namespace boost::lambda;
   std::vector< int > v;
   std::for_each( v.begin(), v.end(), std::cout << _3 << '\n' );
}

compiles. This kind of arity error (minimum arity violation) is, in my
experience, _much_ more common than the opposite.

--
Peter Dimov
Multi Media Ltd.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk