aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/litecoin/files/patch-src__serialize.h
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/litecoin/files/patch-src__serialize.h')
-rw-r--r--net-p2p/litecoin/files/patch-src__serialize.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/net-p2p/litecoin/files/patch-src__serialize.h b/net-p2p/litecoin/files/patch-src__serialize.h
new file mode 100644
index 000000000000..a199c7f7f352
--- /dev/null
+++ b/net-p2p/litecoin/files/patch-src__serialize.h
@@ -0,0 +1,22 @@
+--- src/serialize.h.orig 2013-09-21 15:05:20.000000000 +0000
++++ src/serialize.h 2013-09-21 15:06:01.000000000 +0000
+@@ -895,19 +895,6 @@
+ 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);