On 19/02/16 23:45 +0000, Jonathan Wakely wrote:
If gnulib wants to play at being the standard library it needs to do so correctly, to be compatible with whatever standard library is it pretending to be, as documented at https://gcc.gnu.org/gcc-6/porting_to.html (which would probably mean the path to the gnulib headers needs to be specified with -isystem not -I so that it comes after the libstdc++ <math.h> not before it).
And also using the _GLIBCXX_INCLUDE_NEXT_C_HEADERS trick to forward on to libc <math.h>
If gnulib is not trying to be <math.h> but is just borrowing the name then it needs to change the name to avoid undefined behaviour.
This seems more likely, if it's defining gnulib::floor and not std::floor. -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx