I'm trying to compile some c++ code and I have some issues with using the 
complex library.
The code does some funny pointer stuff with the complex class like this:

    COMPLEX x;
    COMPLEX* px = &x;
    double* prx = &x.real();
    double* pix = &x.imag();
    assert(reinterpret_cast<void*>(prx) == reinterpret_cast<void*>(px));
    assert(reinterpret_cast<void*>(pix-1) == reinterpret_cast<void*>(px));

and this:

    tr_load_point(_n[ii], _n[jj], &(_matrix[nii][njj].real()), 
&(_matrix[nii][njj].imag()));

The error I get is cannot take the address of an rvalue of type 'double'.

I get the same errors when I use clang by itself with "-std=c++11 " ,but it 
compiles fine without that setting.
Same thing with gcc.

I was hoping a compiler setting for emscripten would solve the problem.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to