Only do shrink_to_fit() when exceptions enabled
authorJonathan Wakely <jwakely@redhat.com>
Thu, 17 Sep 2015 14:56:46 +0000 (15:56 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 17 Sep 2015 14:56:46 +0000 (15:56 +0100)
commit99f04955edfdff11e3270df6326f426a29e1ec5a
treed6cce82070a2a2dcc37f72689170cf83ea4c7782
parent385399a8759c233f487ddd7e158802a1ee4f960d
Only do shrink_to_fit() when exceptions enabled

* include/bits/allocator.h (__shrink_to_fit_aux<T, true>::_S_do_it):
Do nothing if exceptions are disabled.
* include/bits/basic_string.h (basic_string::shrink_to_fit): Likewise.

From-SVN: r227870
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/allocator.h
libstdc++-v3/include/bits/basic_string.h