octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LSSA compilation error


From: Stefan Seefeld
Subject: Re: LSSA compilation error
Date: Mon, 14 Jan 2013 22:04:45 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 01/14/2013 09:51 PM, Michael Goffioul wrote:
> Hi,
>
> I get a compilation error in lssa. To be exact, it bump on the use of
> std::complex::real() returning a reference. However it seems that it's
> a GCC extension, and that it's not compliant with C++11. I can't find
> it in current libstdc++ documentation [1]. Am I correct?

Yes indeed. (An implementation of the library may choose to represent
complex numbers in polar coordinates internally, so real and imag parts
may have to be computed on each call to real() and imag(), and thus
can't be accessed by reference.)

    Stefan


-- 

      ...ich hab' noch einen Koffer in Berlin...



reply via email to

[Prev in Thread] Current Thread [Next in Thread]