January 04, 2004
Hi,

I've just been trying some basic op (compound assignment with arithmetic) with the complex type using stlport with dmc, but it wouldn't compile when it should... :(

////////////////////////////////////////////////////////////////
#include <iostream>
#include <complex>
int main()
{
    std::complex<double> cval( 4.0, 1.0 );
    std::cout << cval << std::endl;
    cval += 1.0;
    std::cout << cval << std::endl;
}
////////////////////////////////////////////////////////////////

C:\>dmc -I\dm\stlport\stlport\ complexTest.cpp \dm\stlport\stlport\stl/_complex.h(359) : Warning 11: non-const reference initialized to temporary \dm\stlport\stlport\stl/_complex.h(359) : Error: no implicit conversion with explicit constructor
--- errorlevel 1

////////////////////////////////////////////////////////////////

Any help?

Thax,
KTC
-- 
Experience is a good school but the fees are high.
    - Heinrich Heine