I have a C++11 lambda function and it needs to be realised without C++0x. I tried it with boost.lambda without success so far.
The lambda function captures 4 variables and takes 2 as parameters. In the body of the lambda function are several if/else, cases and around 100 lines of code.
- Is this even possible with boost.lambda/ how can this be realised?
- Would be glad if you could point out a library/give an example.
Hope I wrote all information you need.
€: I got it running,thanks. A little follow up question:
- is there also a way to give the Obj.operater()(); to another function as a callbackfunction/function pointer?
My first try was like this:
Lambda Obj( C, D);
command ( Obj.operator()(typeA A, typeB B));
Thanks