
7 Jun
2010
7 Jun
'10
7:42 a.m.
On Sun, Jun 6, 2010 at 4:41 PM, Joel de Guzman
Is there a reason why you are not using plain phoenix::function(s) for this?
good point, I am still phoenix-challenged I guess. I got driven by the
"Composite" example in the manual.
This is the alternative implementation using phoenix::function:
namespace boost{namespace phoenix{
struct real_impl{
template <typename Arg> struct result{
typedef double type; //can be generalized
};
template <typename Arg>
typename result<Arg>::type
operator()(Arg z) const{
return real(z);
}
};
function