[cfe-users] Failed formatted input using std::istream
sbn at tbricks.com
Wed May 8 08:57:09 PDT 2013
On 05/07/2013 07:28 PM, David Blaikie wrote:
> Seems reasonable to me. Please file a bug at llvm.org/bugs
Explanation from Howard Hinnant
> libc++ has made no attempt to adhere to C++03, only to C++11. And unfortunately this detail is a specification that has changed between C++03 and C++11.
> The sentence you quote has been removed from this paragraph, which is now 22.214.171.124.2p1 [facet.num.get.virtuals].
> Additionally in the same section Stage 3 now says in part:
> The numeric value to be stored can be one of:
> * zero, if the conversion function fails to convert the entire field.
> ios_base::failbit is assigned to err.
> So libc++ does conform to C++11, but not C++03. At this time we have no plans to modify libc++ to strictly adhere to the C++03 standard.
BTW, file the same case against latest libstdc++ --
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-users