* include/bits/allocator.h: Fix for -fno-exceptions.
* include/bits/basic_string.h (basic_string::shrink_to_fit): Same.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156459
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-02-02 Benjamin Kosnik <bkoz@redhat.com>
+
+ * include/bits/allocator.h: Fix for -fno-exceptions.
+ * include/bits/basic_string.h (basic_string::shrink_to_fit): Same.
+
2010-02-02 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/30_threads/unique_future: Rename to /future.
static void
_S_do_it(_Tp& __v)
{
- try
+ __try
{ _Tp(__v).swap(__v); }
- catch(...) { }
+ __catch(...) { }
}
};
#endif
void
shrink_to_fit()
{
- try
+ __try
{ reserve(0); }
- catch(...)
+ __catch(...)
{ }
}
#endif