Boost logo

Boost :

From: Terence Wilson (tez_at_[hidden])
Date: 2003-10-03 12:18:40


When trying to compile:

#include <vector>
#include <string>
#include <iostream>
#include <boost/lambda/lambda.hpp>

using namespace boost::lambda;

int _tmain(int argc, _TCHAR* argv[])
{
        std::vector<std::string> a;
        std::for_each(a.begin(), a.end(), std::cout << _1 << ' ');

        return 0;
}

I get the following errors:

Compiling...
BoostLambdaTest.cpp
c:\PROJECTS\vcpp\Libs\Boost\boost-1.30.2\boost\lambda\detail\arity_code.hpp(
66) : error C2065: 'T' : undeclared identifier
c:\PROJECTS\vcpp\Libs\Boost\boost-1.30.2\boost\lambda\detail\arity_code.hpp(
66) : error C2687: cannot define a nested UDT of a template class out of
line
c:\PROJECTS\vcpp\Libs\Boost\boost-1.30.2\boost\lambda\detail\arity_code.hpp(
66) : fatal error C1903: unable to recover from previous error(s); stopping
compilation

Help would be appreciated!

TIA

Terence


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