aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorJonathan Wakely <redi@gcc.gnu.org>2005-05-09 13:45:05 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2005-05-09 13:45:05 +0100
commit48cf14eb9a107d6a5d1f96e62e241857e5e2e280 (patch)
treeb1ff59d71cdbff020668b7826e1afa6252f749ed /libstdc++-v3
parent292c801888be22f65845216cd16ae7adc63802bc (diff)
downloadgcc-48cf14eb9a107d6a5d1f96e62e241857e5e2e280.zip
gcc-48cf14eb9a107d6a5d1f96e62e241857e5e2e280.tar.gz
gcc-48cf14eb9a107d6a5d1f96e62e241857e5e2e280.tar.bz2
DR 434.
DR 434. bitset::to_string() hard to use [Ready] * include/debug/bitset (to_string): Add three overloads, taking fewer template arguments. From-SVN: r99433
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog6
-rw-r--r--libstdc++-v3/include/debug/bitset24
2 files changed, 29 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 44ce784..6c5dbf7 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,9 @@
+2005-05-09 Jonathan Wakely <redi@gcc.gnu.org>
+
+ DR 434. bitset::to_string() hard to use [Ready]
+ * include/debug/bitset (to_string): Add three overloads, taking
+ fewer template arguments.
+
2005-05-04 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4: Remove testsuite_wchar_t and testsuite_thread.
diff --git a/libstdc++-v3/include/debug/bitset b/libstdc++-v3/include/debug/bitset
index 2e2364f..e292fea3 100644
--- a/libstdc++-v3/include/debug/bitset
+++ b/libstdc++-v3/include/debug/bitset
@@ -1,6 +1,6 @@
// Debugging bitset implementation -*- C++ -*-
-// Copyright (C) 2003, 2004
+// Copyright (C) 2003, 2004, 2005
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
@@ -239,6 +239,28 @@ namespace __gnu_debug_def
to_string() const
{ return _M_base().template to_string<_CharT, _Traits, _Allocator>(); }
+ // _GLIBCXX_RESOLVE_LIB_DEFECTS
+ // 434. bitset::to_string() hard to use.
+ template<typename _CharT, typename _Traits>
+ std::basic_string<_CharT, _Traits, std::allocator<_CharT> >
+ to_string() const
+ { return to_string<_CharT, _Traits, std::allocator<_CharT> >(); }
+
+ template<typename _CharT>
+ std::basic_string<_CharT, std::char_traits<_CharT>,
+ std::allocator<_CharT> >
+ to_string() const
+ {
+ return to_string<_CharT, std::char_traits<_CharT>,
+ std::allocator<_CharT> >();
+ }
+
+ std::basic_string<char, std::char_traits<char>, std::allocator<char> >
+ to_string() const
+ {
+ return to_string<char,std::char_traits<char>,std::allocator<char> >();
+ }
+
using _Base::count;
using _Base::size;