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
/
profile
/
deque
diff --git
a/libstdc++-v3/include/profile/deque
b/libstdc++-v3/include/profile/deque
index
d0859a4
..
12f45d6
100644
(file)
--- a/
libstdc++-v3/include/profile/deque
+++ b/
libstdc++-v3/include/profile/deque
@@
-102,9
+102,12
@@
namespace __profile
deque&
operator=(deque&& __x)
{
- // NB: DR 675.
- this->clear();
- this->swap(__x);
+ if (this != &__x)
+ {
+ // NB: DR 675.
+ this->clear();
+ this->swap(__x);
+ }
return *this;
}