This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
list::_M_check_equal_allocators throws
- From: Marc Glisse <marc dot glisse at inria dot fr>
- To: libstdc++ at gcc dot gnu dot org
- Date: Tue, 17 Sep 2013 15:57:07 +0200 (CEST)
- Subject: list::_M_check_equal_allocators throws
- Authentication-results: sourceware.org; auth=none
- Reply-to: libstdc++ at gcc dot gnu dot org
Hello,
I noticed that std::list::_M_check_equal_allocators throws an exception
when the allocators should be equal but they are not. This prevents from
marking splice noexcept (well, technically we still could, but...).
Debug mode, when it detects an error, prints a diagnostic and aborts.
Should this list check do the same? It looks more like a logic error than
a runtime error to me.
--
Marc Glisse