|
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
Greetings,
The intuitive way to make a PFO having state is letting
boost::phoenix::function
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 hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net