OSDN Git Service

* include/tr1_impl/functional_hash.h (explicit specializations of ()
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 2 May 2009 13:22:49 +0000 (13:22 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 2 May 2009 13:22:49 +0000 (13:22 +0000)
operator): Mark pure.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147062 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/tr1_impl/functional_hash.h

index 7e4f732..64a94ec 100644 (file)
@@ -1,3 +1,8 @@
+2009-05-02  Jan Hubicka  <jh@suse.cz>
+
+       * include/tr1_impl/functional_hash.h (explicit specializations of ()
+       operator): Mark pure.
+
 2009-04-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
 
        * scripts/create_testsuite_files: Remove thread directory.
index 665168c..0b963e0 100644 (file)
@@ -157,25 +157,25 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
 
   /// Explicit specializations for long double.
   template<>
-    size_t
+    _GLIBCXX_PURE size_t
     hash<long double>::operator()(long double __val) const;
 
   /// Explicit specialization of member operator for non-builtin types.
   template<>
-    size_t
+    _GLIBCXX_PURE size_t
     hash<string>::operator()(string) const;
 
   template<>
-    size_t
+    _GLIBCXX_PURE size_t
     hash<const string&>::operator()(const string&) const;
 
 #ifdef _GLIBCXX_USE_WCHAR_T
   template<>
-    size_t
+    _GLIBCXX_PURE size_t
     hash<wstring>::operator()(wstring) const;
 
   template<>
-    size_t
+    _GLIBCXX_PURE size_t
     hash<const wstring&>::operator()(const wstring&) const;
 #endif