DR 434.
authorJonathan Wakely <redi@gcc.gnu.org>
Mon, 9 May 2005 12:45:05 +0000 (13:45 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 9 May 2005 12:45:05 +0000 (13:45 +0100)
DR 434. bitset::to_string() hard to use [Ready]
* include/debug/bitset (to_string): Add three overloads, taking
fewer template arguments.

From-SVN: r99433

libstdc++-v3/ChangeLog
libstdc++-v3/include/debug/bitset

index 44ce7844f0012a6645cd258b5aee7e6f5bdae425..6c5dbf7e44772cc000516a7928e4fd91045edf1e 100644 (file)
@@ -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.
index 2e2364ff9300dfc06730a2ae864d94e45e010dbf..e292fea3d95b69c3c0b068081ef0a55c7d1a7519 100644 (file)
@@ -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;