// Singly-linked list implementation -*- C++ -*-
-// Copyright (C) 2001, 2002, 2004, 2005, 2007 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002, 2004, 2005, 2007, 2008, 2009
+// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
_M_create_node(const value_type& __x)
{
_Node* __node = this->_M_get_node();
- try
+ __try
{
get_allocator().construct(&__node->_M_data, __x);
__node->_M_next = 0;
}
- catch(...)
+ __catch(...)
{
this->_M_put_node(__node);
__throw_exception_again;
_M_create_node()
{
_Node* __node = this->_M_get_node();
- try
+ __try
{
get_allocator().construct(&__node->_M_data, value_type());
__node->_M_next = 0;
}
- catch(...)
+ __catch(...)
{
this->_M_put_node(__node);
__throw_exception_again;