diff options
-rw-r--r-- | libstdc++-v3/ChangeLog | 12 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/rc_string_base.h | 3 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/sso_string_base.h | 6 | ||||
-rw-r--r-- | 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 7c9da49..4fa789a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,15 @@ +2008-07-22 Paolo Carlini <paolo.carlini@oracle.com> + + * 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 <jason@redhat.com> 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 82c614c..213e3cf 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 3335818..73c6a1b 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 6002b19..ea1652d 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 |