Search code examples
c++functional-programmingboost-lambdaboost-phoenix

Boost Phoenix (or Boost Lambda) - taking a pointer lazily


Is there a way of taking a pointer of a lazy phoenix value / ref ? If so how ?


Solution

  • Phoenix placeholders overload operator&(), therefore a simple &_1 should do the trick (see Phoenix docs here).