From 48cf14eb9a107d6a5d1f96e62e241857e5e2e280 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Mon, 9 May 2005 13:45:05 +0100 Subject: [PATCH] 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 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/include/debug/bitset | 24 +++++++++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 44ce7844f00..6c5dbf7e447 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2005-05-09 Jonathan Wakely + + 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 * acinclude.m4: Remove testsuite_wchar_t and testsuite_thread. diff --git a/libstdc++-v3/include/debug/bitset b/libstdc++-v3/include/debug/bitset index 2e2364ff930..e292fea3d95 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 + std::basic_string<_CharT, _Traits, std::allocator<_CharT> > + to_string() const + { return to_string<_CharT, _Traits, std::allocator<_CharT> >(); } + + template + 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, std::allocator > + to_string() const + { + return to_string,std::allocator >(); + } + using _Base::count; using _Base::size;