This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: shared_ptr::operator-> does not fail for nullptr
- From: Christoph Mathys <eraserix at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 12 Jun 2014 14:15:38 +0200
- Subject: Re: shared_ptr::operator-> does not fail for nullptr
- Authentication-results: sourceware.org; auth=none
- References: <CALqGcGr_COWpWGjVa8aonaMX2sf-rwk=4Ni_WHH9UrGAoEo=5g at mail dot gmail dot com> <alpine dot DEB dot 2 dot 10 dot 1406111723580 dot 3301 at laptop-mg dot saclay dot inria dot fr>
> If you compile with -D_GLIBCXX_DEBUG there will be an assertion.
Thanks for the hint. I presume it is still true that I have to compile
every c++library I use with this option as well? ([0])
Christoph
[0] https://svn.boost.org/trac/boost/ticket/5911