This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: list::_M_check_equal_allocators throws
- From: Daniel Krügler <daniel dot kruegler at gmail dot com>
- To: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Tue, 17 Sep 2013 17:59:04 +0200
- Subject: Re: list::_M_check_equal_allocators throws
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 10 dot 1309171540430 dot 11436 at stedding dot saclay dot inria dot fr> <CAH6eHdQRcLnkjPd8+rgZfbOFzbYwexy6VfYNXXfMEF5j1o+eYA at mail dot gmail dot com> <alpine dot DEB dot 2 dot 10 dot 1309171725420 dot 11436 at stedding dot saclay dot inria dot fr> <CAH6eHdRKo6X9sB5BY_j3vafC0_Uhuf5CEfpB1b1f+yAkDxiFHQ at mail dot gmail dot com>
2013/9/17 Jonathan Wakely <jwakely.gcc@gmail.com>
>
> I support adding noexcept specifications to places that shouldn't
> throw, even if that prevents us using exceptions to identify undefined
> behaviour, like this case. Others might disagree though, and prefer
> having an exception thrown, so I'm interested to hear what other
> people think.
I'm with Marc and Jonathan to add noexcept specifications here. It
would also be possible to provide even a bit of IO diagnostics (in the
future), if the actual output is performed by the library (not within
the header).
- Daniel