gcc/libstdc++-v3/testsuite/22_locale
Benjamin Kosnik 26c691a88b re PR libstdc++/12854 (libstdc++ vs. -Weffc++)
2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/12854
	Fixups for -Weffc++.
	* include/bits/basic_string.h (basic_string::operator=): Return
	pointer to this instead of result of assign. Although redundant,
	this doesn't impact resultant codegen.

	* include/bits/locale_facets.h (__numpunct_cache): Declare
	assignment opxserator and copy constructor private.
	(__timepunct_cache): Same.
	(__moneypunct_cache): Same.
	(collate): Use member initialization list for _M_c_locale_collate.
	* config/locale/gnu/messages_members.h: Same.
	* config/locale/gnu/time_members.h (__timepunct): Same.
	* src/codecvt.cc: Use member initialization list to initialize
	_M_c_locale_codecvt.
	* src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
	* config/os/gnu-linux/ctype_noninline.h: Same.
	* src/locale.cc (_Impl): Same.
	* src/locale_init.cc: Same.
	* src/localename.cc: Same.

	* include/bits/basic_ios.h (basic_ios): Complete member
	initialization list.
	* include/bits/istream.tcc (basic_istream::sentry): Same.
	* include/bits/ostream.tcc (basic_ostream::sentry): Same.
	* include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
	_M_pback to member initialization list.
	* include/std/std_streambuf.h: Same.
	* include/std/std_sstream.h: Same, for _M_mode.
	* src/ios.cc (ios_base): Same.

	* include/ext/rope: Make derived classes match exception

	 specifications. Add copy constructors and assignment operators.

	* include/debug/safe_base.h (_Safe_sequence_base): Declare copy
	constructor and assignment operator protected.
	(_Safe_iterator_base): Same.
	* include/debug/formatter.h (_Error_formatter): Define copy
	constructor and assignment operator.

	* include/backward/strstream: Declare assignment operator and copy
	constructor private.

From-SVN: r82153
2004-05-22 23:46:34 +00:00
..
codecvt locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
codecvt_byname locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
collate 2.cc, [...]: Use dg-require-iconv. 2004-02-27 22:09:23 +00:00
collate_byname locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
ctype 1.cc: Provide explicit instantiations for non-weak systems. 2004-03-04 18:11:08 +00:00
ctype_base locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
ctype_byname locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
facet locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
global_templates locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
locale swap.cc: Add in bits for non-weak systems. 2004-03-10 06:31:50 +00:00
messages 1.cc: Remove junk. 2004-04-09 10:18:33 +00:00
messages_byname locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
money_get re PR libstdc++/12854 (libstdc++ vs. -Weffc++) 2004-05-22 23:46:34 +00:00
money_put locale_facets.h: Tweaks for 80 column. 2004-03-24 06:41:07 +00:00
moneypunct locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
moneypunct_byname locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
num_get 1.cc: Remove junk. 2004-04-09 10:18:33 +00:00
num_put re PR libstdc++/15565 ([3.4 only] SLES9: leading + sign for unsigned int with showpos) 2004-05-22 09:02:56 +00:00
numpunct 1.cc: Remove junk. 2004-04-09 10:18:33 +00:00
numpunct_byname locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
time_get time_members.cc (__timepunct<char>::_M_initialize_timepunct, [...]): the correct _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively. 2004-04-07 23:14:08 +00:00
time_put time_members.cc (__timepunct<char>::_M_initialize_timepunct, [...]): the correct _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively. 2004-04-07 23:14:08 +00:00