From 2e52ced18d9d59dcb4aa0ad559e5f65c427ef8d0 Mon Sep 17 00:00:00 2001 From: paolo Date: Fri, 18 Aug 2006 15:42:05 +0000 Subject: 2006-08-18 Paolo Carlini PR libstdc++/28765 * include/ext/rc_string_base.h (_M_clear): New. * include/ext/sso_string_base.h (_M_clear): Likewise. * include/ext/vstring.h (clear): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116240 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/include/ext/rc_string_base.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libstdc++-v3/include/ext/rc_string_base.h') diff --git a/libstdc++-v3/include/ext/rc_string_base.h b/libstdc++-v3/include/ext/rc_string_base.h index eec6f2dcf0d..1a896d827fe 100644 --- a/libstdc++-v3/include/ext/rc_string_base.h +++ b/libstdc++-v3/include/ext/rc_string_base.h @@ -338,6 +338,10 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) void _M_erase(size_type __pos, size_type __n); + void + _M_clear() + { _M_erase(size_type(0), _M_length()); } + bool _M_compare(const __rc_string_base&) const { return false; } -- cgit v1.2.3