ports/net-p2p/digitalcoin/files/patch-src__serialize.h
Steve Wills 622250ba46 Digitalcoin is an open source digital currency, originally based on Bitcoin,
but now heavily modified and improved. Digitalcoin works over a distributed
peer-to-peer network to offer irreversible, low-cost, anonymous and
decentralized monetary transactions.

WWW: http://digitalcoin.co/

PR:		ports/184369
Submitted by:	myst3r10n <myst3r10n@rocketmail.com>
2014-01-18 21:02:36 +00:00

22 lines
935 B
C++

--- ./src/serialize.h.orig 2013-09-24 01:50:35.661706153 +0000
+++ ./src/serialize.h 2013-09-24 01:50:52.913703572 +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);