basic_ios.tcc (copyfmt(const basic_ios&)): Tweak my fix for libstdc++/12657.

2003-10-24  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
	Tweak my fix for libstdc++/12657.

From-SVN: r72895
This commit is contained in:
Paolo Carlini 2003-10-24 14:24:00 +00:00 committed by Paolo Carlini
parent f922579438
commit ebaeca8b55
2 changed files with 49 additions and 45 deletions

View File

@ -1,3 +1,8 @@
2003-10-24 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
Tweak my fix for libstdc++/12657.
2003-10-24 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (money_get::do_get(...,

View File

@ -62,9 +62,8 @@ namespace std
{
// _GLIBCXX_RESOLVE_LIB_DEFECTS
// 292. effects of a.copyfmt (a)
if (this == &__rhs)
return *this;
if (this != &__rhs)
{
// Per 27.1.1, do not call imbue, yet must trash all caches
// associated with imbue()
@ -108,7 +107,7 @@ namespace std
// The next is required to be the last assignment.
this->exceptions(__rhs.exceptions());
}
return *this;
}