[phoenix] [cmath] lazy pow not working in boost 1.48

22 Jan
2012
22 Jan
'12
3:41 a.m.
Hi, Is this a bug in phoenix? the boost::phoenix::pow lazy function doesn't seem to work. My version is Boost 1.48 or maybe 1.49 (after svn update) -- Thanks, Alfredo #include<iostream> #include <boost/phoenix.hpp> #include <boost/phoenix/stl/cmath.hpp> using std::clog; using std::endl; int main(){ using namespace boost::phoenix::arg_names; clog << boost::phoenix::sin(arg1)(1.) << " " << std::sin(1.) << endl; // ok clog << boost::phoenix::pow(arg1, arg1)(2.) << " " << std::pow(2.,2.) << endl; // ^^^^------ error: no matching function for call to ‘pow(const boost::phoenix::expression::argument<1>::type&, double) return 0; }
4886
Age (days ago)
4886
Last active (days ago)
0 comments
1 participants
participants (1)
-
alfC