+2009-08-07 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * src/hash.cc (hash<string>::operator()(string),
+ hash<wstring>::operator()(wstring)): Do not decorate as throwing
+ nothing.
+ * include/bits/functional_hash.h (hash<error_code>::
+ operator()(error_code)): Likewise.
+
2009-08-06 Benjamin Kosnik <bkoz@redhat.com>
* src/compatibility.cc: Make C++0x safe, add in explicit casts to
// functional_hash.h header -*- C++ -*-
-// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
+// Copyright (C) 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
template<>
_GLIBCXX_PURE size_t
- hash<error_code>::operator()(error_code) const throw ();
+ hash<error_code>::operator()(error_code) const;
}
#endif // _FUNCTIONAL_HASH_H
#ifndef _GLIBCXX_LONG_DOUBLE_COMPAT_IMPL
template<>
size_t
- hash<string>::operator()(string __s) const throw ()
+ hash<string>::operator()(string __s) const
{ return _Fnv_hash<>::hash(__s.data(), __s.length()); }
template<>
#ifdef _GLIBCXX_USE_WCHAR_T
template<>
size_t
- hash<wstring>::operator()(wstring __s) const throw ()
+ hash<wstring>::operator()(wstring __s) const
{
const char* __p = reinterpret_cast<const char*>(__s.data());
return _Fnv_hash<>::hash(__p, __s.length() * sizeof(wchar_t));