| commit | 480f5d265a4b22eac82139df8d8edcfe7ba059d0 | [log] [tgz] |
|---|---|---|
| author | Chandler Carruth <chandlerc@gmail.com> | Tue Nov 26 00:54:44 2013 +0000 |
| committer | Chandler Carruth <chandlerc@gmail.com> | Tue Nov 26 00:54:44 2013 +0000 |
| tree | 9d78f2dc5f672707e3f53e8c99668622c7a5d699 | |
| parent | 2664317b66283e149bd436c14659c283f17bba3a [diff] |
Lift self-copy protection up to the header file and add self-move protection to the same layer. This is in line with Howard's advice on how best to handle self-move assignment as he explained on SO[1]. It also ensures that implementing swap with move assignment continues to work in the case of self-swap. [1]: http://stackoverflow.com/questions/9322174/move-assignment-operator-and-if-this-rhs llvm-svn: 195705