|
Boost Users : |
Subject: [Boost-users] phoenix bind template parameter
From: Philipp Kraus (philipp.kraus_at_[hidden])
Date: 2014-12-03 13:34:52
Hello,
I try to use phoenix bind to bind std::pow for double values, but I get errors, because the template parameters not set:
phoenix::bind(&std::pow, _val, _1)
I would like to compile it with C++11. How can I setup the template parameter on the phoenix bind?
At the moment I have defined a function double mypow(double a, double b) { return std::pow(a,b); }
but can I do this directly with std::pow in the bind call?
Thanks a lot
Phil
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