octave-maintainers
[Top][All Lists]
Advanced

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

g++ 6 abs() issue


From: Orion Poplawski
Subject: g++ 6 abs() issue
Date: Fri, 19 Feb 2016 20:09:18 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

Apparently g++ 6 does not define abs() for unsigned types, so you end up with errors like:

corefcn/pr-output.cc: In instantiation of 'void octave_print_internal_template(std::ostream&, const intNDArray<T>&, bool, int) [with T = octave_int<signed char>; std::ostream = std::basic_ostream<char>]':
corefcn/pr-output.cc:3385:200:   required from here
corefcn/pr-output.cc:3261:54: error: call of overloaded 'abs(signed char)' is ambiguous (gnulib::floor (log10 (double (abs (nda(i).value ()))) + 1.0));
                                                  ~~~~^~~~~~~~~~~~~~~~~

See https://gcc.gnu.org/gcc-6/porting_to.html

No idea how to best handle this.

--
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  address@hidden
Boulder, CO 80301              http://www.cora.nwra.com



reply via email to

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