mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-30 07:14:09 +08:00
char_traits.h: Update copyright, tweak.
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
This commit is contained in:
parent
22038b2cf5
commit
b66ea7d48d
@ -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
|
||||
|
@ -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>
|
||||
{ };
|
||||
|
||||
|
||||
|
@ -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') };
|
||||
|
Loading…
Reference in New Issue
Block a user