[ https://issues.apache.org/jira/browse/MESOS-4045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15037926#comment-15037926 ]
Benjamin Bannier commented on MESOS-4045: ----------------------------------------- With a test program {code} #include <iostream> #include <sstream> int main() { std::stringstream ss; ss << std::hex; ss << "0x10.0"; double d = -1; ss >> d; std::boolalpha(std::cerr); std::cerr << ss.fail() << " " << ss.eof() << "\n"; std::cerr << d << "\n"; } {code} under OS X for for clang-3.8.0 I get {code} false true 16 {code} while for gcc-5.2.0 there {code} false false 0 {code} > NumifyTest.HexNumberTest fails > ------------------------------ > > Key: MESOS-4045 > URL: https://issues.apache.org/jira/browse/MESOS-4045 > Project: Mesos > Issue Type: Bug > Components: stout > Environment: Mac OS X 10.11.1 > Reporter: Michael Park > > {noformat} > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from NumifyTest > [ RUN ] NumifyTest.HexNumberTest > ../../../../3rdparty/libprocess/3rdparty/stout/tests/numify_tests.cpp:44: > Failure > Value of: numify<double>("0x10.9").isError() > Actual: false > Expected: true > [ FAILED ] NumifyTest.HexNumberTest (0 ms) > [----------] 1 test from NumifyTest (0 ms total) > [----------] Global test environment tear-down > [==========] 1 test from 1 test case ran. (0 ms total) > [ PASSED ] 0 tests. > [ FAILED ] 1 test, listed below: > [ FAILED ] NumifyTest.HexNumberTest > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)