问题
Is there a way of taking a pointer of a lazy phoenix value / ref ? If so how ?
回答1:
Phoenix placeholders overload operator&()
, therefore a simple &_1
should do the trick (see Phoenix docs here).
来源:https://stackoverflow.com/questions/5211894/boost-phoenix-or-boost-lambda-taking-a-pointer-lazily