Re[2]: Problems with lambda implementation

2009-09-15 Thread Сергей Садовников
Hello, Jason. Sunday, September 13, 2009 at 4:11:03 AM you wrote: >> 1. Lambda and template type deduction. JM> A patch I've been holding off on committing happens to fix this bug. JM> This is surprising, as I thought it was just a code cleanup. I guess JM> I'll go ahead and commit it soon.

Re: Problems with lambda implementation

2009-09-12 Thread Jason Merrill
On 09/12/2009 08:11 PM, Jason Merrill wrote: On 09/10/2009 03:45 PM, Sergey Sadovnikov wrote: 1. Lambda and template type deduction. A patch I've been holding off on committing happens to fix this bug. This is surprising, as I thought it was just a code cleanup. I guess I'll go ahead and commi

Re: Problems with lambda implementation

2009-09-12 Thread Jason Merrill
On 09/10/2009 03:45 PM, Sergey Sadovnikov wrote: 1. Lambda and template type deduction. A patch I've been holding off on committing happens to fix this bug. This is surprising, as I thought it was just a code cleanup. I guess I'll go ahead and commit it soon. 2. Lambdas and result_of or s

Problems with lambda implementation

2009-09-10 Thread Sergey Sadovnikov
Hello, Recently I made some tests with lambda (mingw build) I found some problems. Here they are: 1. Lambda and template type deduction. Try this sample: #include #include #include #include typedef std::function FnType; template FnType average_damp(T fn) { return [fn](double x) {retur