Commit 23f8e984 by Paolo Carlini Committed by Paolo Carlini

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
parent 036c0f63
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment