+2006-11-07 Benjamin Kosnik <bkoz@redhat.com>
+
+ * include/ext/pb_ds/exception.hpp: Add translation support to
+ exception strings.
+ * include/ext/concurrence.h: Same.
+ * include/tr1/array: Same.
+
2006-11-05 Paolo Carlini <pcarlini@suse.de>
* docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 45.
if (__gthread_active_p())
{
if (__gthread_mutex_lock(&_M_mutex) != 0)
- std::__throw_runtime_error("__mutex::lock");
+ std::__throw_runtime_error(__N("__mutex::lock"));
}
#endif
}
if (__gthread_active_p())
{
if (__gthread_mutex_unlock(&_M_mutex) != 0)
- std::__throw_runtime_error("__mutex::unlock");
+ std::__throw_runtime_error(__N("__mutex::unlock"));
}
#endif
}
if (__gthread_active_p())
{
if (__gthread_recursive_mutex_lock(&_M_mutex) != 0)
- std::__throw_runtime_error("__recursive_mutex::lock");
+ std::__throw_runtime_error(__N("__recursive_mutex::lock"));
}
#endif
}
if (__gthread_active_p())
{
if (__gthread_recursive_mutex_unlock(&_M_mutex) != 0)
- std::__throw_runtime_error("__recursive_mutex::unlock");
+ std::__throw_runtime_error(__N("__recursive_mutex::unlock"));
}
#endif
}
// Base class for exceptions.
struct container_error : public std::logic_error
{
- container_error() : std::logic_error("data structure exception") { }
+ container_error()
+ : std::logic_error(__N("policy based data structure exception")) { }
};
// An entry cannot be inserted into a container object for logical
_M_at(size_type __n)
{
if (__builtin_expect(__n >= _Mm, false))
- std::__throw_out_of_range("array::_M_at");
+ std::__throw_out_of_range(__N("array::_M_at"));
return _M_instance[__n];
}
typename __gnu_cxx::__enable_if<!_Mm, reference>::__type
_M_at(size_type)
{
- std::__throw_out_of_range("array::_M_at");
+ std::__throw_out_of_range(__N("array::_M_at"));
return _M_instance[0];
}
_M_at(size_type __n) const
{
if (__builtin_expect(__n >= _Mm, false))
- std::__throw_out_of_range("array::_M_at");
+ std::__throw_out_of_range(__N("array::_M_at"));
return _M_instance[__n];
}
typename __gnu_cxx::__enable_if<!_Mm, const_reference>::__type
_M_at(size_type) const
{
- std::__throw_out_of_range("array::_M_at");
+ std::__throw_out_of_range(__N("array::_M_at"));
return _M_instance[0];
}
};