From 1e58e43be96f1001a41de4e770a0e1f78e8ee68e Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Tue, 22 Jul 2008 13:52:14 +0000 Subject: [PATCH] sso_string_base.h (__sso_string_base<>::__sso_string_base(std::initializer_list<_CharT>, const _Alloc&)): Remove. 2008-07-22 Paolo Carlini * include/ext/sso_string_base.h (__sso_string_base<>::__sso_string_base(std::initializer_list<_CharT>, const _Alloc&)): Remove. * include/ext/rc_string_base.h (__rc_string_base<>::__rc_string_base(std::initializer_list<_CharT>, const _Alloc&)): Likewise. * include/ext/vstring.h (__versa_string<>::__versa_string(std::initializer_list<_CharT>, const _Alloc&)): Adjust. From-SVN: r138058 --- libstdc++-v3/ChangeLog | 12 ++++++++++++ libstdc++-v3/include/ext/rc_string_base.h | 3 --- libstdc++-v3/include/ext/sso_string_base.h | 6 +----- libstdc++-v3/include/ext/vstring.h | 7 ++++--- 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 7c9da490f45..4fa789a4d6d 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,15 @@ +2008-07-22 Paolo Carlini + + * include/ext/sso_string_base.h + (__sso_string_base<>::__sso_string_base(std::initializer_list<_CharT>, + const _Alloc&)): Remove. + * include/ext/rc_string_base.h + (__rc_string_base<>::__rc_string_base(std::initializer_list<_CharT>, + const _Alloc&)): Likewise. + * include/ext/vstring.h + (__versa_string<>::__versa_string(std::initializer_list<_CharT>, + const _Alloc&)): Adjust. + 2008-07-21 Jason Merrill Add initializer_list support as per N2679. diff --git a/libstdc++-v3/include/ext/rc_string_base.h b/libstdc++-v3/include/ext/rc_string_base.h index 82c614c431a..213e3cf1c97 100644 --- a/libstdc++-v3/include/ext/rc_string_base.h +++ b/libstdc++-v3/include/ext/rc_string_base.h @@ -309,9 +309,6 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) __rc_string_base(__rc_string_base&& __rcs) : _M_dataplus(__rcs._M_get_allocator(), __rcs._M_data()) { __rcs._M_data(_S_empty_rep._M_refcopy()); } - - __rc_string_base(std::initializer_list<_CharT> __l, const _Alloc& __a) - : _M_dataplus(__a, _S_construct(__l.begin(), __l.end(), __a)) { } #endif __rc_string_base(size_type __n, _CharT __c, const _Alloc& __a); diff --git a/libstdc++-v3/include/ext/sso_string_base.h b/libstdc++-v3/include/ext/sso_string_base.h index 33358189478..73c6a1b2df0 100644 --- a/libstdc++-v3/include/ext/sso_string_base.h +++ b/libstdc++-v3/include/ext/sso_string_base.h @@ -1,6 +1,6 @@ // Short-string-optimized versatile string base -*- C++ -*- -// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. +// Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -184,10 +184,6 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) #ifdef __GXX_EXPERIMENTAL_CXX0X__ __sso_string_base(__sso_string_base&& __rcs); - - __sso_string_base(std::initializer_list<_CharT> __l, const _Alloc& __a) - : _M_dataplus(__a, _M_local_data) - { _M_construct(__l.begin(), __l.end()); } #endif __sso_string_base(size_type __n, _CharT __c, const _Alloc& __a); diff --git a/libstdc++-v3/include/ext/vstring.h b/libstdc++-v3/include/ext/vstring.h index 6002b197d74..ea1652db54e 100644 --- a/libstdc++-v3/include/ext/vstring.h +++ b/libstdc++-v3/include/ext/vstring.h @@ -163,8 +163,9 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) * @param l std::initializer_list of characters. * @param a Allocator to use (default is default allocator). */ - __versa_string(std::initializer_list<_CharT> __l, const _Alloc& __a = _Alloc()) - : __vstring_base(__l, __a) { } + __versa_string(std::initializer_list<_CharT> __l, + const _Alloc& __a = _Alloc()) + : __vstring_base(__l.begin(), __l.end(), __a) { } #endif /** @@ -274,7 +275,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) __versa_string& operator=(std::initializer_list<_CharT> __l) { - this->assign (__l.begin(), __l.end()); + this->assign(__l.begin(), __l.end()); return *this; } #endif -- 2.30.2