diff options
Diffstat (limited to 'libstdc++-v3/src/localename.cc')
-rw-r--r-- | libstdc++-v3/src/localename.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/libstdc++-v3/src/localename.cc b/libstdc++-v3/src/localename.cc index 867b063fbfb..e4bc18fefe6 100644 --- a/libstdc++-v3/src/localename.cc +++ b/libstdc++-v3/src/localename.cc @@ -31,7 +31,8 @@ #include <bits/std_vector.h> #include <bits/std_stdexcept.h> -namespace std { +namespace std +{ locale::_Impl:: ~_Impl() throw() { @@ -53,7 +54,7 @@ namespace std { catch(...) { delete _M_facets; - throw; + __throw_exception_again; } for (size_t i = 0; i < _S_num_categories; ++i) @@ -83,7 +84,7 @@ namespace std { catch(...) { delete _M_facets; - throw; + __throw_exception_again; } // Name all the categories. @@ -159,7 +160,7 @@ namespace std { if (__index == 0 || __imp->_M_facets->size() <= __index || (*(__imp->_M_facets))[__index] == 0) - throw runtime_error("no locale facet"); + __throw_runtime_error("no locale facet"); _M_install_facet(__idp, (*(__imp->_M_facets))[__index]); } @@ -196,8 +197,5 @@ namespace std { } } } -} - - - +} // namespace std |