[boost] Problem with Lambda on Visual Studio .Net 2002 (Boost 1.30.2)
by Terence Wilson other posts by this author
Oct 3 2003 5:18PM messages near this date
[boost] sorry just a test - having news problems
|
RE: [boost] Problem with Lambda on Visual Studio .Net 2002 (Boost
1.30.2)
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
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Terence Wilson
Terence Wilson
|