title: Elegant porting of lambda expressions in C++
body: <p>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?</p>
  
  <p>Can this be done in a semi automated way using templates/macros?</p>