Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Using lambda expression in 6.5.0?: (3 Items)
   
Using lambda expression in 6.5.0?  
I wrote a simple program using lambda, but it failed with compile errors

#include <cstdlib>
#include <iostream>
#include <tr1/functional>

int main(int argc, char *argv[]) {

	auto f = []{
		std::cout << "Hello, Lambdas" << endl;
	};
	f();

	return EXIT_SUCCESS;
}

I found that lambda is supported since gcc 4.5 and 6.5.0 has 4.4.2. Should I use 6.6.0 to use lambda? Or is there an 
alternative way to use it?
Re: Using lambda expression in 6.5.0?  
Re: Using lambda expression in 6.5.0?  
Aha! Thanks for your reply, Igor Rondarev.