This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
PATCH: fix for BR1675
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Subject: PATCH: fix for BR1675
- From: Dirk Mueller <dmuell at gmx dot net>
- Date: Mon, 29 Jan 2001 23:43:54 +0100
Hi,
I sat down and stripped the header files until I found the reason for the
ambiguous overload. The reason are the stl_relop's pulled into the std
namespace, i.e. in function.h.
removing these includes fixes the problems and don't seem to cause
additional failures for make check nor other sources I tried.
Appended the patch for review and (possible) inclusion. Thanks.
Dirk
Index: include/backward/function.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/backward/function.h,v
retrieving revision 1.1
diff -u -2 -d -p -b -r1.1 function.h
--- function.h 2000/10/05 11:27:00 1.1
+++ function.h 2001/01/29 22:36:30
@@ -31,21 +31,8 @@
#include <bits/stl_config.h>
#endif
-#ifndef _CPP_BITS_STL_RELOPS
-#include <bits/stl_relops.h>
-#endif
#include <stddef.h>
#ifndef _CPP_BITS_STL_FUNCTION_H
#include <bits/stl_function.h>
#endif
-
-#ifdef __STL_USE_NAMESPACE_FOR_RELOPS
-
-// Names from stl_relops.h
-using __STD_RELOPS::operator!=;
-using __STD_RELOPS::operator>;
-using __STD_RELOPS::operator<=;
-using __STD_RELOPS::operator>=;
-
-#endif /* __STL_USE_NAMESPACE_FOR_RELOPS */
#ifdef __STL_USE_NAMESPACES
Index: include/backward/pair.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/backward/pair.h,v
retrieving revision 1.1
diff -u -2 -d -p -b -r1.1 pair.h
--- pair.h 2000/10/05 11:27:00 1.1
+++ pair.h 2001/01/29 22:36:30
@@ -31,7 +31,4 @@
#include <bits/stl_config.h>
#endif
-#ifndef _CPP_BITS_STL_RELOPS_H
-#include <bits/stl_relops.h>
-#endif
#ifndef _CPP_BITS_STL_PAIR_H
#include <bits/stl_pair.h>