|
From: | Dmitri A. Sergatskov |
Subject: | Re: Complex mappers for real values |
Date: | Thu, 22 Jun 2017 13:14:58 -0500 |
On Thu, Jun 22, 2017 at 12:47:49 -0500, Dmitri A. Sergatskov wrote:
> using sample code with
> gcc-4.8.5/gcc-7.1.1/clang-4.0.0 (with either libc++ or libstdc++) all give Hm? They give different answers:
> the same (correct) answer.
> gcc-4.8.5 returns
> g++ -std=c++11 t1.cc
> d
>
> (gcc 7.1.1) g++ t1.cc
> ./a.out
> St7complexIdE
So std::conj has been fixed in gcc 7.
With gcc 6, it still returns a double.
Octave wants conj to return a double, so it looks like it should
continue to use the octave::math::conj adapter.
--
mike
[Prev in Thread] | Current Thread | [Next in Thread] |