This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] fixup ldbl compat issues
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Wed, 12 Aug 2009 14:59:11 -0700
- Subject: [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 ()