Boost logo

Boost Users :

Subject: [Boost-users] phoenix bind template parameter
From: Philipp Kraus (philipp.kraus_at_[hidden])
Date: 2014-12-03 13:34:52


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


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