mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
[LCG] Make the iterator move constructable (and thus movable in general)
now that there is essentially no cost to doing so. Yay C++11. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203447 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3b89e528c4
commit
b94ad9729b
@ -132,7 +132,7 @@ public:
|
||||
|
||||
public:
|
||||
iterator(const iterator &Arg) : G(Arg.G), NI(Arg.NI) {}
|
||||
|
||||
iterator(iterator &&Arg) : G(Arg.G), NI(std::move(Arg.NI)) {}
|
||||
iterator &operator=(iterator Arg) {
|
||||
std::swap(Arg, *this);
|
||||
return *this;
|
||||
|
Loading…
Reference in New Issue
Block a user