commit 02221ce47cade82036c7d78ed79e5fe536fdfcfd
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Thu Sep 3 23:01:02 2015 +0100
* include/std/shared_mutex (shared_timed_mutex::shared_timed_mutex):
Replace throw with __throw_bad_alloc.
@@ -74,7 +74,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
int __ret = pthread_rwlock_init(&_M_rwlock, NULL);
if (__ret == ENOMEM)
- throw bad_alloc();
+ __throw_bad_alloc();
else if (__ret == EAGAIN)
__throw_system_error(int(errc::resource_unavailable_try_again));
else if (__ret == EPERM)