This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3] fixup ldbl compat issues


Re: error in hash.cc, fixed with this.

tested x86_64/linux

-benjamin
2009-08-12  Benjamin Kosnik  <bkoz@redhat.com>

        * src/compatibility-ldbl.cc: Add explicit namespace scope.


Index: src/compatibility-ldbl.cc
===================================================================
--- src/compatibility-ldbl.cc	(revision 150706)
+++ src/compatibility-ldbl.cc	(working copy)
@@ -68,7 +68,13 @@
 }
 
 // For std::tr1::hash<long double>::operator ()
+namespace std
+{
+  namespace tr1 
+  {
 #include "hash.cc"
+  }
+}
 
 // std::tr1::hash<long double>::operator ()
 // and std::hash<long double>::operator ()

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]