diff options
| author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-08-18 15:42:05 +0000 |
|---|---|---|
| committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-08-18 15:42:05 +0000 |
| commit | 2e52ced18d9d59dcb4aa0ad559e5f65c427ef8d0 (patch) | |
| tree | dbdaafea7465708d771832b62b1508908e771fbd /libstdc++-v3/include/ext/rc_string_base.h | |
| parent | beb68f4a20aebb56a249bd83f20d09c86e92723f (diff) | |
| download | ppe42-gcc-2e52ced18d9d59dcb4aa0ad559e5f65c427ef8d0.tar.gz ppe42-gcc-2e52ced18d9d59dcb4aa0ad559e5f65c427ef8d0.zip | |
2006-08-18 Paolo Carlini <pcarlini@suse.de>
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
Diffstat (limited to 'libstdc++-v3/include/ext/rc_string_base.h')
| -rw-r--r-- | libstdc++-v3/include/ext/rc_string_base.h | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |

