This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Throwing std::ios_base::failure on formatted input with gcc 6.2
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Edward Diener <eldlistmailingz at tropicsoft dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Thu, 27 Oct 2016 15:00:00 +0100
- Subject: Re: Throwing std::ios_base::failure on formatted input with gcc 6.2
- Authentication-results: sourceware.org; auth=none
- References: <nuq4vs$4c5$1@blaine.gmane.org> <CAH6eHdRAhZ0Vsmt1VrpUH_RTFTtgZNYmPOoAMmxA0epQZVGdPw@mail.gmail.com> <CAH6eHdQDp2-j_+HYaa+fBFCB5ZcwSGT1K1fiid6o_gb=aDF4HQ@mail.gmail.com> <nuqbsl$9bu$1@blaine.gmane.org> <CAH6eHdSkL0apuQ8s3m+5KQGcT3PTUJsyaF0ywp=ddC7SQtKeAA@mail.gmail.com> <nuqmkq$j1$1@blaine.gmane.org> <CAH6eHdQbJR=gD2KknH4hqWi-J-+EC4UJnSGGfQjhmrBWk2yqUg@mail.gmail.com> <nut0r5$6ah$1@blaine.gmane.org>
On 27 October 2016 at 14:52, Edward Diener wrote:
> It sounds like you are also saying that there is no way to catch the old
> type, even if I wanted to, since the header file declaration has the
> decorated attribute.
No, the attribute is only present conditionally, see
https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html
If you compile with _GLIBCXX_USE_CXX11_ABI defined to zero then you
get the declaration of the old type (and the old COW std::string, and
the old std::list with O(n) size()).