+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.
__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);
// 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
#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);
* @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
/**
__versa_string&
operator=(std::initializer_list<_CharT> __l)
{
- this->assign (__l.begin(), __l.end());
+ this->assign(__l.begin(), __l.end());
return *this;
}
#endif