vstring.h (__versa_string::shrink_to_fit): Fix for -fno-exceptions.

2010-02-02  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/ext/vstring.h (__versa_string::shrink_to_fit): Fix
	for -fno-exceptions.

From-SVN: r156460
This commit is contained in:
Paolo Carlini 2010-02-03 00:38:52 +00:00 committed by Paolo Carlini
parent 036c0f63e1
commit 23f8e984b7
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-02-02 Paolo Carlini <paolo.carlini@oracle.com>
* include/ext/vstring.h (__versa_string::shrink_to_fit): Fix
for -fno-exceptions.
2010-02-02 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/allocator.h: Fix for -fno-exceptions.

View File

@ -461,9 +461,9 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
void
shrink_to_fit()
{
try
__try
{ this->reserve(0); }
catch(...)
__catch(...)
{ }
}
#endif