On Thu, 21 May 2015 17:19:29 -0500, Christopher Pisz
<
nos...@notanaddress.com> wrote:
>Trying to update my project to use a newer compiler. It started
>complaining about my use of std::pow being ambiguous and having multiple
>overloads to choose from.
>
> From what I can tell std::pow now uses something called std::complex. I
>looked that up and it represents complex numbers. Fair enough. I don't
>need to deal with a complex number, but I don't know if I have to use it
>to get the solution to x^y.
>
>Is this how I am supposed to use it?
>
>const std::string fractionalPart = "123456789"
>
>const double inputTicksPerSecond =
>std::pow<double>(std::complex<double>(10.0),
>std::complex<double>(fractionalPart.size())).real();
>
>I'm a bit confused.
--