D vs C++11

Mehrdad wfunction at hotmail.com
Fri Nov 2 19:44:48 PDT 2012


On Saturday, 3 November 2012 at 02:27:21 UTC, mist wrote:
> Regarding delegates - I think deal is that none of this C++ 
> stuff can automatically capture local function context with 
> delegate, so there are no _real_ delegates.



I don't understand what you mean...

std::function<int(int)> make_adder(int a)
{
	return [=](int b) { return a + b; };
}


More information about the Digitalmars-d mailing list