]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
char_traits.h: Update copyright, tweak.
authorBenjamin Kosnik <bkoz@redhat.com>
Fri, 25 Jul 2003 16:35:39 +0000 (16:35 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Fri, 25 Jul 2003 16:35:39 +0000 (16:35 +0000)
2003-07-25  Benjamin Kosnik  <bkoz@redhat.com>

* include/bits/char_traits.h: Update copyright, tweak.
* testsuite/ext/pod_char_traits.cc: Explicitly qualifiy namespace
std types.

From-SVN: r69791

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/char_traits.h
libstdc++-v3/testsuite/ext/pod_char_traits.cc

index f2925d0e65e98122ac9f439500a21f4a3b0d2b4f..39882a3f41a25621616afff7681f608f9c5a6bb0 100644 (file)
@@ -1,3 +1,9 @@
+2003-07-25  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/bits/char_traits.h: Update copyright, tweak.
+       * testsuite/ext/pod_char_traits.cc: Explicitly qualifiy namespace
+       std types.
+
 2003-07-24  Matt Austern  <austern@apple.com>
 
        * /include/bits/char_traits.h (class char_traits): Put all the
index 23b69f32bfd5191cd6e6cded5ca4e72133133f38..424fd08c730277304014a54eface56b63496faec 100644 (file)
@@ -1,6 +1,6 @@
 // Character Traits for use by standard string and iostream -*- C++ -*-
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -48,7 +48,6 @@
 
 namespace __gnu_cxx
 {
-
   /**
    *  @brief  Mapping from character type to associated types.
    * 
@@ -224,7 +223,7 @@ namespace std
   */
   template<class _CharT>
     struct char_traits
-      : public __gnu_cxx::char_traits<_CharT>
+    : public __gnu_cxx::char_traits<_CharT>
     { };
 
 
index c3c4eee2594c7c9b6cdbc592cf838c34e9bc4882..3db5a2132912af2390185acd8010f108778c6b21 100644 (file)
@@ -34,7 +34,6 @@
 
 int main()
 {
-  using namespace std;
   using namespace __gnu_cxx;
 
   typedef unsigned short                       value_type;
@@ -55,7 +54,7 @@ int main()
   test = traits_type::eq(c1, c2);
   
   // 3 basic_string<char_type>
-  typedef basic_string<char_type>      string_type;
+  typedef std::basic_string<char_type> string_type;
   string_type str;
   char_type c3 = { value_type('b') };
   char_type c4 = { value_type('o') };