OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
2010-01-08 Paolo Carlini <paolo.carlini@oracle.com>
[pf3gnuchains/gcc-fork.git]
/
libstdc++-v3
/
include
/
debug
/
list
diff --git
a/libstdc++-v3/include/debug/list
b/libstdc++-v3/include/debug/list
index
3af008c
..
78462e4
100644
(file)
--- a/
libstdc++-v3/include/debug/list
+++ b/
libstdc++-v3/include/debug/list
@@
-112,9
+112,12
@@
namespace __debug
list&
operator=(list&& __x)
{
- // NB: DR 675.
- clear();
- swap(__x);
+ if (this != &__x)
+ {
+ // NB: DR 675.
+ clear();
+ swap(__x);
+ }
return *this;
}