Boost logo

Boost Users :

Subject: [Boost-users] [Phoenix] Can we use boost::phoenix::function<Impl const&>?
From: TONGARI (tongari95_at_[hidden])
Date: 2011-05-06 06:14:10


The intuitive way to make a PFO having state is letting
hold the impl's reference, however, the following does not work.

struct Impl
  ...defines a functor having state...

Impl impl;
boost::phoenix::function<Impl const&> f(impl);
f(...lazy call...); // should return an actor here, but not compiles

Is this intended behavior?

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at