system_error (system_category): To system_category().
[gcc.git] / libstdc++-v3 / src / functexcept.cc
index 266e035662a7e20fed56a6f83d3332f933eecd84..d1352d7941997bba29d626fc9a3b63002b45d607 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002, 2003, 2005, 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
@@ -97,16 +97,12 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
   { throw underflow_error(_(__s)); }
 
   void
-  __throw_system_error(const char* __s)
-  { throw system_error(error_code(), _(__s)); }
+  __throw_ios_failure(const char* __s)
+  { throw ios_base::failure(_(__s)); }
 
   void
   __throw_system_error(int __i)
-  { throw system_error(error_code(__i, generic_category)); }
-
-  void
-  __throw_ios_failure(const char* __s)
-  { throw ios_base::failure(_(__s)); }
+  { throw system_error(error_code(__i, generic_category())); }
 #else
   void
   __throw_bad_exception(void)
@@ -161,16 +157,12 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
   { std::abort(); }
 
   void
-  __throw_system_error(const char* __s)
+  __throw_ios_failure(const char*)
   { std::abort(); }
 
   void
   __throw_system_error(int __i)
   { std::abort(); }
-
-  void
-  __throw_ios_failure(const char*)
-  { std::abort(); }
 #endif //__EXCEPTIONS
 
 _GLIBCXX_END_NAMESPACE