[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54237] 'abs' function template hack in pr-out
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #54237] 'abs' function template hack in pr-output.cc is not portable |
Date: |
Tue, 3 Jul 2018 15:47:36 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 |
Follow-up Comment #3, bug #54237 (project octave):
I am still bewildered as to how the compiler is attempting to match the bare
function name 'abs' against various 'std::abs' definitions.
The only thing I can think of is that the argument to 'abs' is resolved as a
namespaced 'std::int32_t' for example, instead of a bare 'int32_t' type, which
allows the compiler to resolve functions on it in the 'std' namespace. In the
Octave source code itself, we don't use 'std::int32_t' anywhere, but maybe
some difference in the Solaris system header files is making that equivalence.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54237>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/