Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2007-02-21 08:05:38


"Chris Weed" <chrisweed_at_[hidden]> writes:

> Hi,
> I am getting the wrong result for the exponential of complex numbers
> such as the following:
>
> #include <boost/mpl/math/double.hpp>
> #include <boost/mpl/math/complex_number.hpp>
> #include <iostream>
>
> int main()
> {
> typedef boost::mpl::math::string_c_to_double<'-',2,'.',0>::type
> minus_two;

I don't know anything about Boost.MPLMath, but I suspect that the 2
and the 0 need to be quoted also.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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