allocator.h: Fix for -fno-exceptions.
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. From-SVN: r156459
This commit is contained in:
parent
8ddbc857a7
commit
036c0f63e1
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -194,9 +194,9 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
|||
static void
|
||||
_S_do_it(_Tp& __v)
|
||||
{
|
||||
try
|
||||
__try
|
||||
{ _Tp(__v).swap(__v); }
|
||||
catch(...) { }
|
||||
__catch(...) { }
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
|
|
@ -743,9 +743,9 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
|||
void
|
||||
shrink_to_fit()
|
||||
{
|
||||
try
|
||||
__try
|
||||
{ reserve(0); }
|
||||
catch(...)
|
||||
__catch(...)
|
||||
{ }
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue