[
https://issues.apache.org/jira/browse/QPID-7390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15417872#comment-15417872
]
ASF subversion and git services commented on QPID-7390:
-------------------------------------------------------
Commit 0587ab3f13edabea04dc9f4c765911e29f67b1ba in qpid-cpp's branch
refs/heads/master from [~astitcher]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-cpp.git;h=0587ab3 ]
QPID-7390: Work around libc++ oddity in ostream& operator>>(ostream&, double)
- libc++ on FreeBSD errors when seeing an 'n' character after numerics rather
than
just stopping the conversion. Probably related to processing "nan", but still
different
from libstdc++ and strtod behaviour.
> libc++: Work around seeming library bug
> ---------------------------------------
>
> Key: QPID-7390
> URL: https://issues.apache.org/jira/browse/QPID-7390
> Project: Qpid
> Issue Type: Bug
> Environment: freeBSD 10, clang 3.4, libc++
> Reporter: Andrew Stitcher
> Assignee: Andrew Stitcher
>
> It seems that libc++ doesn't like to see the character 'n' after converting
> an istream to a double!
> For instance "1.23ns" will cause operator>> to fail rather than convert 1.23
> and then stop.
> I think this is a bug in libc++, probably related to handling "nan"
> (Not-a-number) values.
> We can work around this by using strtod() rather than operator>> for the
> numeric conversion.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]