|
Boost : |
From: Terence Wilson (tez_at_[hidden])
Date: 2003-10-06 16:42:47
I'll answer my own question: Lambda does not compile with anything earlier
than the Visual Studio .Net 2003 compiler.
> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of Terence Wilson
> Sent: Friday, October 03, 2003 10:19 AM
> To: boost_at_[hidden]
> Subject: [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\a
> rity_code.hpp(
> 66) : error C2065: 'T' : undeclared identifier
> c:\PROJECTS\vcpp\Libs\Boost\boost-1.30.2\boost\lambda\detail\a
> rity_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\a
> rity_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
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk