gcc/libstdc++-v3/include/bits
Paolo Carlini 66143232bc re PR libstdc++/19495 (basic_string::_M_rep() can produce an unnaturally aligned pointer to _Rep)
2005-05-18  Paolo Carlini  <pcarlini@suse.de>
	    Nathan Myers  <ncm@cantrip.org>

	PR libstdc++/19495
	* include/bits/basic_string.h (_Raw_bytes_alloc): Rebind to
	size_type instead of char and rename to _Raw_alloc.
	* include/bits/basic_string.tcc (_Rep::_M_destroy, _Rep::_S_create):
	Use the above.
	* src/bitmap_allocator.cc: Add instantiation for size_type.
	* src/mt_allocator.cc: Likewise.
	* src/pool_allocator.cc: Likewise.
	* include/ext/array_allocator.h: Tweak slightly, avoid assuming
	the existence of an _Array::begin() and size() members.
	* testsuite/ext/array_allocator/2.cc: Tweak to use an allocator
	of size_type, instead of char, thus avoiding problems with
	rebinds, not treated correctly by array_allocator.

Co-Authored-By: Nathan Myers <ncm@cantrip.org>

From-SVN: r99933
2005-05-18 22:11:24 +00:00
..
allocator.h doxygroups.cc: Add std::tr1 namespace. 2004-11-24 04:11:23 +00:00
atomicity.h Add memory barriers to the double-checked locking used for static initialization. 2004-12-27 23:36:54 -05:00
basic_ios.h
basic_ios.tcc doxygroups.cc: Add std::tr1 namespace. 2004-11-24 04:11:23 +00:00
basic_string.h re PR libstdc++/19495 (basic_string::_M_rep() can produce an unnaturally aligned pointer to _Rep) 2005-05-18 22:11:24 +00:00
basic_string.tcc re PR libstdc++/19495 (basic_string::_M_rep() can produce an unnaturally aligned pointer to _Rep) 2005-05-18 22:11:24 +00:00
boost_concept_check.h
c++config gcc-version.m4: Delete. 2005-03-16 06:04:10 +00:00
char_traits.h re PR libstdc++/17218 (unknown subjects in generated libstdc++ manpages) 2004-11-05 19:58:03 +00:00
codecvt.h acinclude.m4: Remove CCODECVT_H. 2005-01-07 19:34:46 +00:00
concept_check.h
concurrence.h doxygroups.cc: Add std::tr1 namespace. 2004-11-24 04:11:23 +00:00
cpp_type_traits.h PR libstdc++/21244 (cont) 2005-04-28 07:50:48 +00:00
deque.tcc re PR libstdc++/18604 (Use of unqualified names conflict with names in global namespace) 2005-05-10 01:58:19 +00:00
fstream.tcc re PR libstdc++/21286 (filebuf::xsgetn vs pipes) 2005-04-30 06:54:08 +00:00
functexcept.h re PR libstdc++/19343 (New warnings in libstdc++-v3 since 2004-01-05) 2005-01-23 10:45:01 +00:00
gslice.h
gslice_array.h
indirect_array.h
ios_base.h locale_facets.h (isspace, [...]): Add doxygen markup. 2004-11-23 09:18:41 +00:00
istream.tcc istream.cc (basic_istream<char>::ignore(streamsize), [...]): In case more than numeric_limits<streamsize>::max() chars are skipped... 2005-01-11 23:35:43 +00:00
list.tcc
locale_classes.h basic_string.h, [...]: Doxygen fixes. 2004-11-21 13:16:24 +00:00
locale_facets.h re PR libstdc++/19955 (Second std::ctype<char>::narrow() does not call std::ctype<char>::do_narrow()) 2005-02-15 23:29:52 +00:00
locale_facets.tcc re PR libstdc++/21238 (conflicting "typedef __numpunct_cache<_CharT> __cache_type;" in std::numpunct<CharT> makes specialization impossible) 2005-04-29 18:50:00 +00:00
localefwd.h
mask_array.h
ostream.tcc doxygroups.cc: Add std::tr1 namespace. 2004-11-24 04:11:23 +00:00
postypes.h
slice_array.h
sstream.tcc doxygroups.cc: Add std::tr1 namespace. 2004-11-24 04:11:23 +00:00
stl_algo.h PR libstdc++/21244 (cont) 2005-04-28 07:50:48 +00:00
stl_algobase.h re PR libstdc++/20577 (iter_swap doesn't work anymore with vector<bool>) 2005-03-21 22:16:15 +00:00
stl_bvector.h re PR libstdc++/18604 (Use of unqualified names conflict with names in global namespace) 2005-05-10 01:58:19 +00:00
stl_construct.h cpp_type_traits.h: Add types to the structs thus making type_traits.h redundant... 2005-01-31 16:22:01 +00:00
stl_deque.h re PR libstdc++/18604 (Use of unqualified names conflict with names in global namespace) 2005-05-10 01:58:19 +00:00
stl_function.h
stl_heap.h
stl_iterator.h
stl_iterator_base_funcs.h
stl_iterator_base_types.h
stl_list.h re PR libstdc++/18604 (Use of unqualified names conflict with names in global namespace) 2005-05-10 01:58:19 +00:00
stl_map.h re PR libstdc++/18604 (Use of unqualified names conflict with names in global namespace) 2005-05-10 01:58:19 +00:00
stl_multimap.h re PR libstdc++/18604 (Use of unqualified names conflict with names in global namespace) 2005-05-10 01:58:19 +00:00
stl_multiset.h re PR libstdc++/18604 (Use of unqualified names conflict with names in global namespace) 2005-05-10 01:58:19 +00:00
stl_numeric.h
stl_pair.h
stl_queue.h
stl_raw_storage_iter.h
stl_relops.h
stl_set.h re PR libstdc++/18604 (Use of unqualified names conflict with names in global namespace) 2005-05-10 01:58:19 +00:00
stl_stack.h
stl_tempbuf.h cpp_type_traits.h: Add types to the structs thus making type_traits.h redundant... 2005-01-31 16:22:01 +00:00
stl_tree.h stl_tree.h (_Rb_tree<>::_M_insert): Don't leak memory if _M_key_compare throws. 2005-02-26 23:34:36 +00:00
stl_uninitialized.h cpp_type_traits.h: Add types to the structs thus making type_traits.h redundant... 2005-01-31 16:22:01 +00:00
stl_vector.h re PR libstdc++/18604 (Use of unqualified names conflict with names in global namespace) 2005-05-10 01:58:19 +00:00
stream_iterator.h
streambuf.tcc doxygroups.cc: Add std::tr1 namespace. 2004-11-24 04:11:23 +00:00
streambuf_iterator.h 2004-11-24 Nathan Myers <ncm@cantrip.org> 2004-11-24 17:01:22 +00:00
stringfwd.h
valarray_after.h basic_string.h, [...]: Doxygen fixes. 2004-11-21 13:16:24 +00:00
valarray_array.h cpp_type_traits.h: Rename _M_type fields to __value... 2005-02-01 13:30:34 +00:00
valarray_array.tcc doxygroups.cc: Add std::tr1 namespace. 2004-11-24 04:11:23 +00:00
valarray_before.h basic_string.h, [...]: Doxygen fixes. 2004-11-21 13:16:24 +00:00
vector.tcc re PR libstdc++/18604 (Use of unqualified names conflict with names in global namespace) 2005-05-10 01:58:19 +00:00