re PR c++/16169 (-Weffc++ item 15 improvements)

2004-07-08  Benjamin Kosnik  <bkoz@redhat.com>

	PR c++/16169
	* include/bits/basic_string.h (basic_string::operator=): Revert.

From-SVN: r84296
This commit is contained in:
Benjamin Kosnik 2004-07-08 15:56:21 +00:00 committed by Benjamin Kosnik
parent 6f26317193
commit 75f29cdded
2 changed files with 7 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
PR c++/16169
* include/bits/basic_string.h (basic_string::operator=): Revert.
2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
* configure.ac (libtool_VERSION): To 6:2:0.

View File

@ -419,10 +419,7 @@ namespace std
*/
basic_string&
operator=(const basic_string& __str)
{
this->assign(__str);
return *this;
}
{ return this->assign(__str); }
/**
* @brief Copy contents of @a s into this string.
@ -430,10 +427,7 @@ namespace std
*/
basic_string&
operator=(const _CharT* __s)
{
this->assign(__s);
return *this;
}
{ return this->assign(__s); }
/**
* @brief Set value to string of length 1.