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
/
map.h
diff --git
a/libstdc++-v3/include/debug/map.h
b/libstdc++-v3/include/debug/map.h
index
9a558b5
..
8ef28a1
100644
(file)
--- a/
libstdc++-v3/include/debug/map.h
+++ b/
libstdc++-v3/include/debug/map.h
@@
-115,9
+115,12
@@
namespace __debug
map&
operator=(map&& __x)
{
- // NB: DR 675.
- clear();
- swap(__x);
+ if (this != &__x)
+ {
+ // NB: DR 675.
+ clear();
+ swap(__x);
+ }
return *this;
}