Created
December 27, 2013 02:59
-
-
Save GarrettAlbright/8141994 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/serialize.h b/src/serialize.h | |
index 6e952fa..3acdbc0 100644 | |
--- a/src/serialize.h | |
+++ b/src/serialize.h | |
@@ -808,19 +808,6 @@ public: | |
iterator insert(iterator it, const char& x=char()) { return vch.insert(it, x); } | |
void insert(iterator it, size_type n, const char& x) { vch.insert(it, n, x); } | |
- void insert(iterator it, const_iterator first, const_iterator last) | |
- { | |
- assert(last - first >= 0); | |
- if (it == vch.begin() + nReadPos && (unsigned int)(last - first) <= nReadPos) | |
- { | |
- // special case for inserting at the front when there's room | |
- nReadPos -= (last - first); | |
- memcpy(&vch[nReadPos], &first[0], last - first); | |
- } | |
- else | |
- vch.insert(it, first, last); | |
- } | |
- | |
void insert(iterator it, std::vector<char>::const_iterator first, std::vector<char>::const_iterator last) | |
{ | |
assert(last - first >= 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment