+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.
+
2004-06-28 Paolo Carlini <pcarlini@suse.de>
* src/localename.cc (locale::_Impl::_Impl): Slightly improve
_Safe_iterator_base&
operator=(const _Safe_iterator_base&);
- explicit
+ explicit
_Safe_iterator_base(const _Safe_iterator_base&);
~_Safe_iterator_base() { this->_M_detach(); }
: _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()
// Methods for type_info for -*- C++ -*- Run Time Type Identification.
-// Copyright (C) 1994, 1996, 1998, 1999, 2000, 2001, 2002, 2003
+// Copyright (C) 1994, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004
// Free Software Foundation
//
// This file is part of GCC.
__upcast_result (int d)
:dst_ptr (NULL), part2dst (__unknown), src_details (d), base_type (NULL)
{}
-
- explicit
- __upcast_result(const __upcast_result& r)
- : dst_ptr(r.dst_ptr), part2dst(r.part2dst), src_details(r.src_details),
- base_type(r.base_type)
- { }
-
- __upcast_result&
- operator=(const __upcast_result& r)
- {
- if (&r != this)
- {
- dst_ptr = r.dst_ptr;
- part2dst = r.part2dst;
- src_details = r.src_details;
- base_type = r.base_type;
- }
- return *this;
- }
};
// __dyncast_result is used to hold information during traversal of a class