From 63061bc6f5f173a300f359e6a446f35b3e88f423 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 2 May 1999 22:44:24 +0000 Subject: [PATCH] * tinfo.cc (operator==): Qualify type_info with std::. From-SVN: r26736 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/tinfo.cc | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index c767fb37e25..f21d2b128ab 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +1999-05-02 Martin von Löwis + + * tinfo.cc (operator==): Qualify type_info with std::. + 1999-05-02 Mark Mitchell * cp-tree.h (lang_decl_flags): Remove comdat. Updated dummy. diff --git a/gcc/cp/tinfo.cc b/gcc/cp/tinfo.cc index 0d782ea375a..5269cb5940e 100644 --- a/gcc/cp/tinfo.cc +++ b/gcc/cp/tinfo.cc @@ -40,8 +40,8 @@ std::type_info:: { } // We can't rely on common symbols being shared between shared objects. -bool type_info:: -operator== (const type_info& arg) const +bool std::type_info:: +operator== (const std::type_info& arg) const { return (&arg == this) || (strcmp (name (), arg.name ()) == 0); } -- 2.30.2