ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved