summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/debug/bitset
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-09 12:45:05 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-09 12:45:05 +0000
commit436098f39631ad903a012c52604fe6579bd07466 (patch)
treeb1ff59d71cdbff020668b7826e1afa6252f749ed /libstdc++-v3/include/debug/bitset
parent797d223e6bb3fa1b5c602887b771d699889c21b7 (diff)
downloadppe42-gcc-436098f39631ad903a012c52604fe6579bd07466.tar.gz
ppe42-gcc-436098f39631ad903a012c52604fe6579bd07466.zip
DR 434. bitset::to_string() hard to use [Ready]
* include/debug/bitset (to_string): Add three overloads, taking fewer template arguments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99433 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/debug/bitset')
-rw-r--r--libstdc++-v3/include/debug/bitset24
1 files changed, 23 insertions, 1 deletions
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<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;
OpenPOWER on IntegriCloud