Since lambda expressions require GCC version > 4.4: what is the most elegant or fastest (yet not too ‘dirty’) way of porting code containing a couple of lambda expressions with reference-bound variables to pre-C++0x code?
Can this be done in a semi automated way using templates/macros?
Maybe you should take a look at boost::lambda. This should do what you are looking for.