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:
parent
036c0f63e1
commit
23f8e984b7
@ -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.
|
||||
|
@ -461,9 +461,9 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
|
||||
void
|
||||
shrink_to_fit()
|
||||
{
|
||||
try
|
||||
__try
|
||||
{ this->reserve(0); }
|
||||
catch(...)
|
||||
__catch(...)
|
||||
{ }
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user