Make CScript (and prevector) c++11 movable.

Such moves are used when reallocating vectors that contain them,
for example.
This commit is contained in:
Pieter Wuille
2016-12-13 19:36:46 -08:00
parent e8cfe1ee2d
commit 2ddfcfd2d6
3 changed files with 29 additions and 2 deletions

View File

@@ -394,7 +394,6 @@ protected:
}
public:
CScript() { }
CScript(const CScript& b) : CScriptBase(b.begin(), b.end()) { }
CScript(const_iterator pbegin, const_iterator pend) : CScriptBase(pbegin, pend) { }
CScript(std::vector<unsigned char>::const_iterator pbegin, std::vector<unsigned char>::const_iterator pend) : CScriptBase(pbegin, pend) { }
CScript(const unsigned char* pbegin, const unsigned char* pend) : CScriptBase(pbegin, pend) { }