diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-28 18:31:18 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-28 18:31:18 +0000 |
commit | 3051cb265844beaab32f0824f7c6f4a75fe1f704 (patch) | |
tree | d54db162455c74b00339d4ea7daaa9ab0b71f3ee /libstdc++-v3/include | |
parent | caf8cb0fa7ed2ca0fc57fe613d464131642555f0 (diff) | |
download | gcc-3051cb265844beaab32f0824f7c6f4a75fe1f704.tar.gz |
2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
* include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
Revert -Weffc++ changes that defined copy ctory and or assignment
operator.
* libsupc++/tinfo.cc (__upcast_result): Same.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83804 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r-- | libstdc++-v3/include/debug/safe_base.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/libstdc++-v3/include/debug/safe_base.h b/libstdc++-v3/include/debug/safe_base.h index fb62620f06a..a1af33ac5f7 100644 --- a/libstdc++-v3/include/debug/safe_base.h +++ b/libstdc++-v3/include/debug/safe_base.h @@ -98,7 +98,7 @@ namespace __gnu_debug _Safe_iterator_base& operator=(const _Safe_iterator_base&); - explicit + explicit _Safe_iterator_base(const _Safe_iterator_base&); ~_Safe_iterator_base() { this->_M_detach(); } @@ -164,25 +164,6 @@ namespace __gnu_debug : _M_iterators(0), _M_const_iterators(0), _M_version(1) { } - explicit - _Safe_sequence_base(const _Safe_sequence_base& __seq) - : _M_iterators(__seq._M_iterators), - _M_const_iterators(__seq._M_const_iterators), - _M_version(__seq._M_version) - { } - - _Safe_sequence_base& - operator=(const _Safe_sequence_base& __seq) - { - if (&__seq != this) - { - _M_iterators = __seq._M_iterators; - _M_const_iterators = __seq._M_const_iterators; - _M_version = __seq._M_version; - } - return *this; - } - /** Notify all iterators that reference this sequence that the sequence is being destroyed. */ ~_Safe_sequence_base() |